PlayerNowPlayable
public protocol PlayerNowPlayable : AnyObject
Interface to provide NowPlayingInfo.
-
API to set remote command handler.
Declaration
Swift
var remoteCommandHandler: PlayerRemoteCommandControllable? { get set } -
API to set NowPlayingInfo. Set this NowPlayingInfo once you set the
remoteCommandHandlerproperty The system displays now-playing information on the device lock screen and in the multimedia controls in the multitasking UI. If the user directs playback of your media to Apple TV via AirPlay, the now-playing information appears on the television screen. If the user connects a device to an iPod accessory, such as in a car, the accessory may display now-playing information. Pass in nil to clear the NowPlayingInfo.Declaration
Swift
var nowPlayingInfo: [String : Any]? { get set } -
API to determine whether airplay is currently active or not.
Declaration
Swift
var isAirplayRouteActive: Bool { get }