GCKUICastContainerViewController Class

  • GCKUICastContainerViewController wraps another View Controller and adds a media playback notification area.

  • The notification displays "now playing" information including a thumbnail, title, subtitle, progress bar, and play/pause button.

  • The controller manages the visibility of the "now playing" item based on the media playback state.

  • It inherits from UIViewController and has properties for the content view controller and the mini media controls view controller.

  • The miniMediaControlsItemEnabled flag controls whether the "now playing" item is enabled.

GCKUICastContainerViewController Class Reference

Overview

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.

Property Summary

UIViewController * contentViewController
 The view controller to be embedded as the content area of this view controller. More...
 
GCKUIMiniMediaControlsViewControllerminiMediaControlsViewController
 The "now playing" view controller. More...
 
BOOL miniMediaControlsItemEnabled
 A flag indicating whether the "now playing" item should be enabled. More...
 

Property Detail

- (UIViewController*) contentViewController
readnonatomicstrong

The view controller to be embedded as the content area of this view controller.

- (GCKUIMiniMediaControlsViewController*) miniMediaControlsViewController
readnonatomicstrong

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.