Your Digital Media Has Never Looked So Good

 
El-vishy
Topic Author
Posts: 3
Joined: Wed Jun 28, 2017 3:09 am

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

Wed Jun 28, 2017 3:35 am

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?
 
tim_beynart
Posts: 174
Joined: Wed Jul 15, 2015 8:30 am

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

Wed Jun 28, 2017 10:07 am

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
 
El-vishy
Topic Author
Posts: 3
Joined: Wed Jun 28, 2017 3:09 am

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

Sat Sep 09, 2017 2:01 am

Looks like you are right. Thanks Tim
 
tim_beynart
Posts: 174
Joined: Wed Jul 15, 2015 8:30 am

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

Tue Sep 12, 2017 3:05 pm

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.

Who is online

Users browsing this forum: No registered users and 7 guests