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: 
El-vishy
Visitor

Valid values for the "errorCode" in roku scenegraph video player

videoPlayer.observeField("errorCode",onError)
Sub onError()
   print "The error "; videoPlayer.errorCode
End Sub


The errorCode property returns integer values.

Is there any documentation available for the entire range of error code it can return?
0 Kudos
3 REPLIES 3
tim_beynart
Channel Surfer

Re: Valid values for the "errorCode" in roku scenegraph video player

it might be related to the isRequestFailed() message from the deprecated roVideoPlayerEvent

https://sdkdocs.roku.com/display/sdkdoc ... layerEvent
I'm just guessing, I haven't tested this yet
0 Kudos
El-vishy
Visitor

Re: Valid values for the "errorCode" in roku scenegraph video player

Looks like you are right. Thanks Tim
0 Kudos
tim_beynart
Channel Surfer

Re: Valid values for the "errorCode" in roku scenegraph video player

I used to have logic that was something like "if request.code < 400 then..." to validate an HTTP response, not realizing the Roku error codes were negative numbers along with the standard HTTP codes. OOPS.
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.