自定义 Google Cast MiniController

Posted

技术标签:

【中文标题】自定义 Google Cast MiniController【英文标题】:Custom Google Cast MiniController 【发布时间】:2017-06-09 12:24:23 【问题描述】:

我的任务是为 ios 中的 google cast 定制 miniController。我需要自定义迷你控制器的文本颜色并模糊迷你控制器 我花了一些时间试图找到在这方面有帮助的资源,但没有成功。谁能帮我指出可以帮助我解决这个问题或帮助激发解决方案的资源?

我不能发布任何示例代码,因为这是为了工作。 仅供参考,我是 iOS 新手

非常感谢

【问题讨论】:

【参考方案1】:

您可以参考此文档了解如何Apply Custom Styles to Your iOS App。此过程使用将应用的迷你控制器的正文颜色设置为红色的示例。

    在table of views and styles 中查找要设置样式的小部件或小部件组的视图名称。组名用 ▼ 标记。

    示例:miniController 小部件视图

    从该表中列出的相应样式类的属性列表中找到要更改的属性的名称。

    示例:bodyTextColorGCKUIStyleAttributesMiniController 类的属性。

示例代码:

GCKUIStyle *castStyle = [GCKUIStyle.sharedInstance];
castStyle.castViews.mediaControl.miniController.bodyTextColor = [UIColor red];
// Assign colors, fonts and images to other properties, as needed
[castStyle applyStyle];

希望这会有所帮助!

【讨论】:

好东西,这正是我想要的。非常感谢。

以上是关于自定义 Google Cast MiniController的主要内容,如果未能解决你的问题,请参考以下文章

Google Cast API - 是不是可以在会话请求中传递自定义数据?

Google Cast 频道错误

深入理解Google Cast探寻原理

深入理解Google Cast探寻原理

如何在 google cast(前贴片广告、插播广告)中加入广告(广告)

深入理解Google Cast开发一个支持Google Cast的sender APP