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: 
tifroz
Streaming Star

Troubleshoot http issues with Video roSGNode?

I am migrating from roVideoPlayerto scene graph. With roVideoPlayer I could easily figure out http issues by monitoring roSystemLog's "http.error" and "http.connect" events (see https://sdkdocs.roku.com/display/sdkdoc/roSystemLog)

roSystemLog does not seem to work with the video roSGNode: I am only getting "bandwidth.minute" events from roSystemLog, no http-related events whatsoever.

Does anyone have any tips for getting some insight into the http activity of a video roSGNode?
0 Kudos
2 REPLIES 2
tifroz
Streaming Star

Re: Troubleshoot http issues with Video roSGNode?

bump! it's been 18 months since I first posted - I recently scanned the forum for relevant updates, but...nothing 😞
0 Kudos
norcaljohnny
Roku Guru

Re: Troubleshoot http issues with Video roSGNode?

Assuming you create an observer for the video player like so..

m.video.observeField("state","controlvideoplay")


Then you can have a function like so


sub controlvideoplay()
  if (m.video.state = "error")
    print errorCode
    print errorMsg
    print errorStr
  end if
end sub
0 Kudos