Merge pull request #1127 from 1hitsong/stopSpinnerOnIntros

Stop spinner when intro video starts & disable intros on playlists
This commit is contained in:
1hitsong 2023-03-24 20:51:14 -04:00 committed by GitHub
commit 9d6796e7e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,9 @@ sub LoadItems_AddVideoContent(video, mediaSourceId, audio_stream_idx = 1, subtit
end if end if
end if end if
' For phase 1 of playlist support, we don't support intros yet
showIntro = false
' Don't attempt to play an intro for an intro video ' Don't attempt to play an intro for an intro video
if showIntro if showIntro
' Do not play intros when resuming playback ' Do not play intros when resuming playback

View File

@ -337,6 +337,7 @@ function PlayIntroVideo(video_id, audio_stream_idx) as boolean
introVideo.observeField("state", port) introVideo.observeField("state", port)
m.global.sceneManager.callFunc("pushScene", introVideo) m.global.sceneManager.callFunc("pushScene", introVideo)
introPlaying = true introPlaying = true
stopLoadingSpinner()
while introPlaying while introPlaying
msg = wait(0, port) msg = wait(0, port)