Forum Discussion

tifroz's avatar
tifroz
Streaming Star
9 years ago

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?

2 Replies

  • tifroz's avatar
    tifroz
    Streaming Star
    bump! it's been 18 months since I first posted - I recently scanned the forum for relevant updates, but...nothing 😞
  • 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