pianod2
multisource multiuser scriptable networked music player
Instance Methods | List of all members
PlayerHelper Class Reference

Catch notifications that the player is ready or has completed. More...

Inheritance diagram for PlayerHelper:
Inheritance graph
[legend]
Collaboration diagram for PlayerHelper:
Collaboration graph
[legend]

Instance Methods

(PlayerHelper *) - initWithRecipientPlayer:
 
(oneway void) - release
 Detach all observers and release resources. More...
 
(PlayerHelper *) - monitorPlayer:
 Add the player to the monitor. More...
 
(PlayerHelper *) - monitorPlayerItem:
 Add the media item to the monitor. More...
 
(void) - itemDidFinishPlaying:
 Callback function for when playback is complete. More...
 
(void) - itemDidFailPlayback:
 Callback function for when playback is complete. More...
 
(void) - observeValueForKeyPath:ofObject:change:context:
 Callback function for when player is ready. More...
 

Detailed Description

Catch notifications that the player is ready or has completed.

Warning
None of the PlayerHelper infrastructure works without an NSApplication instance running the main run loop; apparently the callbacks get dispatched through there.

Method Documentation

◆ initWithRecipientPlayer:

- (PlayerHelper *) initWithRecipientPlayer: (Audio::AVFoundationPlayer *)  cpp_relay
Here is the caller graph for this function:

◆ itemDidFailPlayback:

- (void) itemDidFailPlayback: (AVPlayerItem *)  player

Callback function for when playback is complete.

◆ itemDidFinishPlaying:

- (void) itemDidFinishPlaying: (AVPlayerItem *)  player

Callback function for when playback is complete.

◆ monitorPlayer:

- (PlayerHelper *) monitorPlayer: (AVPlayer *)  player

Add the player to the monitor.

Here is the caller graph for this function:

◆ monitorPlayerItem:

- (PlayerHelper *) monitorPlayerItem: (AVPlayerItem *)  item

Add the media item to the monitor.

Here is the caller graph for this function:

◆ observeValueForKeyPath:ofObject:change:context:

- (void) observeValueForKeyPath: (NSString *)  keyPath
ofObject: (id)  object
change: (NSDictionary *)  change
context: (void *)  context 

Callback function for when player is ready.

◆ release

- (oneway void) release

Detach all observers and release resources.

Here is the caller graph for this function:

The documentation for this class was generated from the following file: