mirror of
https://github.com/jellyfin/jellyfin-roku.git
synced 2024-11-27 00:10:43 +00:00
Update API docs
Some checks failed
Automation 🤖 / Project board 📊 (push) Has been cancelled
Automation 🤖 / Labeling 🏷️ (push) Has been cancelled
build-dev / dev (push) Has been cancelled
build-docs / docs (push) Has been cancelled
build-prod / prod (push) Has been cancelled
deploy-api-docs / deploy (push) Has been cancelled
Some checks failed
Automation 🤖 / Project board 📊 (push) Has been cancelled
Automation 🤖 / Labeling 🏷️ (push) Has been cancelled
build-dev / dev (push) Has been cancelled
build-docs / docs (push) Has been cancelled
build-prod / prod (push) Has been cancelled
deploy-api-docs / deploy (push) Has been cancelled
This commit is contained in:
parent
e9deedf347
commit
c764252ccb
@ -56,6 +56,7 @@ sub loadItems()
|
||||
forceTranscoding = false
|
||||
|
||||
m.top.content = [LoadItems_VideoPlayer(id, mediaSourceId, audio_stream_idx, forceTranscoding)]
|
||||
m.top.forceMp3 = false
|
||||
end sub
|
||||
|
||||
function LoadItems_VideoPlayer(id as string, mediaSourceId = invalid as dynamic, audio_stream_idx = 1 as integer, forceTranscoding = false as boolean) as dynamic
|
||||
@ -174,7 +175,7 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s
|
||||
if not isValid(mediaSourceId) then mediaSourceId = video.id
|
||||
if meta.live then mediaSourceId = ""
|
||||
|
||||
m.playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition)
|
||||
m.playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition, m.top.forceMp3)
|
||||
if not isValid(m.playbackInfo)
|
||||
video.errorMsg = "Error loading playback info"
|
||||
video.content = invalid
|
||||
@ -191,7 +192,7 @@ sub LoadItems_AddVideoContent(video as object, mediaSourceId as dynamic, audio_s
|
||||
video.SelectedSubtitle = defaultSubtitleIndex
|
||||
subtitle_idx = defaultSubtitleIndex
|
||||
|
||||
m.playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition)
|
||||
m.playbackInfo = ItemPostPlaybackInfo(video.id, mediaSourceId, audio_stream_idx, subtitle_idx, playbackPosition, m.top.forceMp3)
|
||||
if not isValid(m.playbackInfo)
|
||||
video.errorMsg = "Error loading playback info"
|
||||
video.content = invalid
|
||||
|
@ -36,7 +36,6 @@ sub init()
|
||||
|
||||
m.playbackTimer = m.top.findNode("playbackTimer")
|
||||
m.bufferCheckTimer = m.top.findNode("bufferCheckTimer")
|
||||
m.top.observeField("state", "onState")
|
||||
m.top.observeField("content", "onContentChange")
|
||||
m.top.observeField("selectedSubtitle", "onSubtitleChange")
|
||||
m.top.observeField("audioIndex", "onAudioIndexChange")
|
||||
@ -399,6 +398,8 @@ sub onVideoContentLoaded()
|
||||
return
|
||||
end if
|
||||
|
||||
m.top.observeField("state", "onState")
|
||||
|
||||
m.top.content = videoContent[0].content
|
||||
m.top.PlaySessionId = videoContent[0].PlaySessionId
|
||||
m.top.videoId = videoContent[0].id
|
||||
@ -641,6 +642,17 @@ sub onState(msg)
|
||||
|
||||
if not m.playReported and m.top.transcodeAvailable
|
||||
m.top.retryWithTranscoding = true ' If playback was not reported, retry with transcoding
|
||||
else if m.top.errorStr = "decoder:pump:Unsupported AAC stream."
|
||||
m.log.info("retrying video with mp3 audio stream", m.currentItem.id, m.top.SelectedSubtitle, m.top.audioIndex)
|
||||
|
||||
m.top.unobserveField("state")
|
||||
m.LoadMetaDataTask.forceMp3 = true
|
||||
m.LoadMetaDataTask.selectedSubtitleIndex = m.top.SelectedSubtitle
|
||||
m.LoadMetaDataTask.selectedAudioStreamIndex = m.top.audioIndex
|
||||
m.LoadMetaDataTask.itemId = m.currentItem.id
|
||||
m.LoadMetaDataTask.observeField("content", "onVideoContentLoaded")
|
||||
|
||||
m.LoadMetaDataTask.control = "RUN"
|
||||
else
|
||||
' If an error was encountered, Display dialog
|
||||
showPlaybackErrorDialog(tr("Error During Playback"))
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user