Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Search instead for 
Did you mean: 
El-vishy
Level 7

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
tim_beynart
Level 7

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

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

Looks like you are right. Thanks Tim
0 Kudos
tim_beynart
Level 7

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