Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
destruk
Streaming Star

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?
0 Kudos
1 REPLY 1
RokuKevin
Visitor

Re: Improper Stream URL reboots Roku

We don't like crashes either.... I've opened a bug.

--Kevin
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.