GCKUICastContainerViewController Class
Stay organized with collections
Save and categorize content based on your preferences.
A view controller which wraps another View Controller and adds a media playback notification area below that controller.
The notification can display a "now playing" item that displays a thumbnail, title, and subtitle for the current media item, a stream progress bar, and a play/pause toggle button. The controller shows and hides this item as appropriate based on the current media playback state on the receiver.
- Since
- 3.0
Inherits UIViewController.
- (UIViewController*) contentViewController |
|
readnonatomicstrong |
The view controller to be embedded as the content area of this view controller.
The "now playing" view controller.
- (BOOL) miniMediaControlsItemEnabled |
|
readwritenonatomicassign |
A flag indicating whether the "now playing" item should be enabled.
If enabled, the item will be displayed automatically whenever there is media content loaded or playing on the receiver. The default value is NO
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eGCKUICastContainerViewController\u003c/code\u003e wraps another view controller and adds a media playback notification area.\u003c/p\u003e\n"],["\u003cp\u003eThis notification area displays a "now playing" item with thumbnail, title, subtitle, progress bar, and play/pause control.\u003c/p\u003e\n"],["\u003cp\u003eIt automatically shows and hides based on the media playback state on the receiver.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable or disable the "now playing" item using \u003ccode\u003eminiMediaControlsItemEnabled\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can embed their own view controller using the \u003ccode\u003econtentViewController\u003c/code\u003e property.\u003c/p\u003e\n"]]],[],null,["# GCKUICastContainerViewController Class\n\n[Properties](#properties) \nGCKUICastContainerViewController Class Reference \n\nOverview\n--------\n\nA view controller which wraps another View Controller and adds a media playback notification area below that controller.\n\nThe notification can display a \"now playing\" item that displays a thumbnail, title, and subtitle for the current media item, a stream progress bar, and a play/pause toggle button. The controller shows and hides this item as appropriate based on the current media playback state on the receiver.\n\nSince\n: 3.0\n\nInherits UIViewController.\n\n|-----------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------|\n| Property Summary ---------------- ||\n| UIViewController \\* | [contentViewController](/cast/docs/reference/ios/interface_g_c_k_u_i_cast_container_view_controller#a275c9682d97b7cf234e02591c8afbf6f) |\n| | The view controller to be embedded as the content area of this view controller. [More...](#a275c9682d97b7cf234e02591c8afbf6f) |\n| ||\n| [GCKUIMiniMediaControlsViewController](/cast/docs/reference/ios/interface_g_c_k_u_i_mini_media_controls_view_controller) \\* | [miniMediaControlsViewController](/cast/docs/reference/ios/interface_g_c_k_u_i_cast_container_view_controller#abfffcd7e05822ada42951e3238fb3489) |\n| | The \"now playing\" view controller. [More...](#abfffcd7e05822ada42951e3238fb3489) |\n| ||\n| BOOL | [miniMediaControlsItemEnabled](/cast/docs/reference/ios/interface_g_c_k_u_i_cast_container_view_controller#af141f5231b2cf502c28d4ec9188654d9) |\n| | A flag indicating whether the \"now playing\" item should be enabled. [More...](#af141f5231b2cf502c28d4ec9188654d9) |\n| ||\n\nProperty Detail\n---------------\n\n|---------------------------------------------------------------------------------------------------|---------------------|\n| |----------------------------------------------| | - (UIViewController\\*) contentViewController | | readnonatomicstrong |\n\nThe view controller to be embedded as the content area of this view controller. \n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------|\n| |----------------------------------------------------------------------------------------------------------------------------------------------------------------| | - ([GCKUIMiniMediaControlsViewController](/cast/docs/reference/ios/interface_g_c_k_u_i_mini_media_controls_view_controller)\\*) miniMediaControlsViewController | | readnonatomicstrong |\n\nThe \"now playing\" view controller. \n\n|-------------------------------------------------------------------------------------|--------------------------|\n| |---------------------------------------| | - (BOOL) miniMediaControlsItemEnabled | | readwritenonatomicassign |\n\nA flag indicating whether the \"now playing\" item should be enabled.\n\nIf enabled, the item will be displayed automatically whenever there is media content loaded or playing on the receiver. The default value is `NO`."]]