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: 
joetesta
Roku Guru

isRequestFailed() GetInfo()

Hello.
I'm trying to troubleshoot some HLS video errors on Roku.  When roVideoPlayerEvent isRequestFailed() is true, GetMessage() is giving things such as:
"The format is not supported or the media is corrupt."
"malformed data"
"An unexpected problem (but not server timeout or HTTP error) has been detected."
(fwiw the video server people say they're not seeing any errors and everything looks fine on that side)

I tried to output the GetInfo() object, which I thought would have an array including the url that caused the problem, however, GetInfo() is sometimes returning invalid and other times returning an associative array with one element,  MediaFormat: <Component: roAssociativeArray>
which is itself an empty associative array.  Am I doing it wrong or is there something wrong with roVideoPlayerEvent GetInfo()?

tyvmia,
Joe

https://sdkdocs.roku.com/display/sdkdoc ... layerEvent
isRequestFailed() as Boolean
GetInfo() as Object
Returns an AssociativeArray containing the same members as in isStreamStarted except IsUnderrun.
Returns an Associative Array containing these members:
Url URL of video stream
StreamBitrate average bitrate of stream, in bits per second
MeasuredBitrate measured network bandwidth in kibibits per second, used to select stream
IsUnderrun true if this is a rebuffer due to an underrun
aspiring
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.