Forum Discussion

destruk's avatar
destruk
Streaming Star
15 years ago

Improper Stream URL reboots Roku

faulty reboot crash code is:
m.filesystem=CreateObject("roFileSystem")
If m.filesystem.exists("ext1:/")
this.player.SetContentList([{
Stream: { ext1: "/test.mp4" }
StreamFormat: "mp4"
}])

correct code is:
m.filesystem=CreateObject("roFileSystem")
If m.filesystem.exists("ext1:/test.mp4")
this.player.SetContentList([{
Stream: { url: "file://ext1:/test.mp4" }
StreamFormat: "mp4"
}])


Would it be possible to add the "invalid URL" error message and properly handle the error to prevent a reboot in the firmware?

1 Reply