示例#1
0
 private void SynchVideoWithMusic(SongAudioPlayer songAudioPlayer)
 {
     SyncVideoPlayPause(songAudioPlayer.PositionInSongInMillis);
     if (videoPlayer.isPlaying)
     {
         SyncVideoWithMusic(songAudioPlayer.PositionInSongInMillis);
     }
 }
示例#2
0
 public void Init(SongMeta songMeta, SongAudioPlayer songAudioPlayer)
 {
     this.SongMeta            = songMeta;
     this.SongAudioPlayer     = songAudioPlayer;
     HasLoadedBackgroundImage = false;
     InitEventSubscriber();
     InitVideo(songMeta);
 }
示例#3
0
 public void Init(SongMeta songMeta, SongAudioPlayer songAudioPlayer)
 {
     this.SongMeta        = songMeta;
     this.SongAudioPlayer = songAudioPlayer;
     songAudioPlayer.JumpBackInSongEventStream.Subscribe(_ => SyncVideoWithMusic(true));
     if (forceSyncOnForwardJumpInTheSong)
     {
         songAudioPlayer.JumpForwardInSongEventStream.Subscribe(_ => SyncVideoWithMusic(true));
     }
     InitVideo(songMeta);
 }
示例#4
0
 public void Init(SongMeta songMeta, SongAudioPlayer songAudioPlayer)
 {
     this.SongMeta        = songMeta;
     this.SongAudioPlayer = songAudioPlayer;
     InitVideo(songMeta);
 }