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: 
selina_lai
Visitor

unexpected event (message type 31) in roVideoScreenEvent

Hi,

I set up a video player channel (modified from videoplayer example codes) and have a web site streaming video via hls
the streaming url is like http://server.com/?video=xxx&audio=xxx&stream=xxx

But when I press 'play' I got the messages below and the video is not playing. It got stuck at retrieving black screen.
The message 1 is caught by msg.isStreamStarted() and after waiting for a while message 2 appears 'unexpected event type'
Can anyone point out what may cause the problem? Thanks a lot.

1.
'msg.isStreamStarted
showVideoScreen | msg = Stream started. | index = 0
Stream Started: 0 StreamBitrate: 0
MeasuredBitrate: 54258
Url: http://server.com/?video=xxx&audio=xxx&stream=xxx
IsUnderrun: false

2.
showVideoScreen | msg = Download segment info | index = 0
Unexpected event type: 31 getinfo: Sequence: 0
Status: 0
DownloadDuration: 1
SegUrl: http://server.com/?video=xxx&audio=xxx&stream=xxx
SegSize: 236
BufferSize: 67108864
BufferLevel: 236
0 Kudos
1 REPLY 1
TheEndless
Channel Surfer

Re: unexpected event (message type 31) in roVideoScreenEvent

Message type 31 isn't an error. It's a new event that was added in the latest firmware. isDownloadSegmentInfo(), I believe. Double check your code to make sure it's not dying if it receives an event it's not expecting, because if you're getting those two events, that would suggest that it's playing back fine.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
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.