Skip to content

Commit

Permalink
Fix video not playing on DLC maps and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevga committed Mar 13, 2023
1 parent b9ca116 commit 9757df1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion BeatSaberCinema/Screen/PlaybackController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ public void SetSelectedLevel(IPreviewBeatmapLevel? level, VideoConfig? config)
VideoConfig = config;
Log.Debug($"Selected Level: {level?.levelID ?? "null"}");

if (VideoConfig == null || ( level != null && VideoLoader.IsDlcSong(level)))
if (VideoConfig == null)
{
VideoPlayer.FadeOut();
StopAllCoroutines();
Expand All @@ -539,6 +539,10 @@ public void SetSelectedLevel(IPreviewBeatmapLevel? level, VideoConfig? config)

Log.Debug("Preparing video...");
PrepareVideo(VideoConfig);
if (level != null && VideoLoader.IsDlcSong(level))
{
VideoPlayer.FadeOut();
}
}

private async void ShowSongCover()
Expand Down
2 changes: 1 addition & 1 deletion BeatSaberCinema/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Play videos in the background of your beatmaps",
"author": "Dakari",
"gameVersion": "1.28.0",
"version": "1.7.2",
"version": "1.7.3",
"dependsOn": {
"BSIPA": "^4.2.2",
"BeatSaberMarkupLanguage": "^1.6.0",
Expand Down

0 comments on commit 9757df1

Please sign in to comment.