Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
destruk
Level 10

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
RokuKevin
Level 9

Re: Improper Stream URL reboots Roku

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

--Kevin
0 Kudos