GCKUICastContainerViewController 类
一个视图控制器,用于封装另一个视图控制器,并在该控制器下方添加媒体播放通知区域。
通知可以显示“正在播放”内容,其中显示了当前媒体项的缩略图、标题和副标题、流进度条和播放/暂停切换按钮。控制器会根据接收器上的当前媒体播放状态相应地显示和隐藏此内容。
- 辛塞
- 3.0
此类集成 UIViewController。
- (NSString* const) kGCKExpandedMediaControlsTriggeredNotification |
- (UIViewController*) contentViewController |
|
readnonatomicstrong |
- (BOOL) miniMediaControlsItemEnabled |
|
readwritenonatomicassign |
此标记指示是否应启用“正在播放”项。
启用此选项后,只要有媒体内容加载或正在接收设备上播放,系统就会自动显示该内容。默认值为 NO
。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-12-05。
[null,null,["最后更新时间 (UTC):2022-12-05。"],[[["`GCKUICastContainerViewController` wraps another view controller and adds a media playback notification area."],["The notification area displays media information like thumbnail, title, subtitle, progress bar, and play/pause controls."],["It automatically shows or hides based on the receiver's playback state."],["Developers can embed their view controller as content and control the \"now playing\" item's visibility."],["It provides a notification to trigger expanded media controls."]]],[]]