Exemple #1
0
 /// <summary>
 /// On disable, stops listening for playlist events
 /// </summary>
 protected virtual void OnDisable()
 {
     MMPlaylistPauseEvent.Unregister(OnPauseEvent);
     MMPlaylistPlayEvent.Unregister(OnPlayEvent);
     MMPlaylistPlayNextEvent.Unregister(OnPlayNextEvent);
     MMPlaylistStopEvent.Unregister(OnStopEvent);
     MMPlaylistPlayIndexEvent.Unregister(OnPlayIndexEvent);
 }
Exemple #2
0
 /// <summary>
 /// On enable, starts listening for playlist events
 /// </summary>
 protected virtual void OnEnable()
 {
     MMPlaylistPauseEvent.Register(OnPauseEvent);
     MMPlaylistPlayEvent.Register(OnPlayEvent);
     MMPlaylistPlayNextEvent.Register(OnPlayNextEvent);
     MMPlaylistPlayPreviousEvent.Register(OnPlayPreviousEvent);
     MMPlaylistStopEvent.Register(OnStopEvent);
     MMPlaylistPlayIndexEvent.Register(OnPlayIndexEvent);
 }
Exemple #3
0
 /// <summary>
 /// Plays the playlist
 /// </summary>
 public virtual void Play()
 {
     MMPlaylistPlayEvent.Trigger();
 }