Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Reload LiveTv when feed Errors #669

Merged
merged 21 commits into from
Sep 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions components/JFVideo.brs
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,13 @@ sub init()
m.bufferPercentage = 0 ' Track whether content is being loaded
m.playReported = false
m.top.transcodeReasons = []
m.bufferCheckTimer.duration = 10
m.bufferCheckTimer.duration = 30

end sub

'
' When Video Player state changes
sub onState(msg)

' When buffering, start timer to monitor buffering process
if m.top.state = "buffering" and m.bufferCheckTimer <> invalid

Expand Down
7 changes: 5 additions & 2 deletions source/Main.brs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ sub Main (args as dynamic) as void

' Set global constants
setConstants()

' Write screen tracker for screensaver
WriteAsciiFile("tmp:/scene.temp", "")
MoveFile("tmp:/scene.temp", "tmp:/scene")
Expand Down Expand Up @@ -341,7 +340,11 @@ sub Main (args as dynamic) as void
end if
else if isNodeEvent(msg, "state")
node = msg.getRoSGNode()
if node.state = "finished"
if selectedItem.Type = "TvChannel" and node.state = "finished"
video = CreateVideoPlayerGroup(node.id)
m.global.sceneManager.callFunc("pushScene", video)
m.global.sceneManager.callFunc("clearPreviousScene")
else if node.state = "finished"
node.control = "stop"

' If node allows retrying using Transcode Url, give that shot
Expand Down