private void SynchVideoWithMusic(SongAudioPlayer songAudioPlayer) { SyncVideoPlayPause(songAudioPlayer.PositionInSongInMillis); if (videoPlayer.isPlaying) { SyncVideoWithMusic(songAudioPlayer.PositionInSongInMillis); } }
public void Init(SongMeta songMeta, SongAudioPlayer songAudioPlayer) { this.SongMeta = songMeta; this.SongAudioPlayer = songAudioPlayer; HasLoadedBackgroundImage = false; InitEventSubscriber(); InitVideo(songMeta); }
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); }
public void Init(SongMeta songMeta, SongAudioPlayer songAudioPlayer) { this.SongMeta = songMeta; this.SongAudioPlayer = songAudioPlayer; InitVideo(songMeta); }