rokudev/SceneGraphDeveloperExtensions

MediaView error media.errorCode == -3 media.errorMsg == An unexpected problem (but not server timeout or HTTP error) has been detected.

Closed this issue · 5 comments

If I try to watch this
url: "https://vodes1-footters.secure2.footprint.net/360sports/VMFS1/FILES/public/videos/360sports/136549/playlist.m3u8"

I got problem


Media state changed to none
Media state changed to buffering
Media state changed to error
[SGDEX] media.errorCode == -3 media.errorMsg == An unexpected problem (but not server timeout or HTTP error) has been detected.
SGDEX: fire close for this View
SGDEX: Showing previous View

This is not an SGDEX specific problem. I get a 404 error from your URL. You can test streams yourself using the Stream Tester tool linked below.

https://devtools.web.roku.com/#stream-tester-tool

Ok now I try other urls thanks

I used this configuration:


function OpenVideoPlayerItem(contentItem as Object) as Object
    'm.top.buttonBar.visible = false ' hide button bar on MediaView
    ' Create MediaView Object and set its fields
    'video = CreateObject("roSGNode", "MediaView")
    video = CreateObject("roSGNode", "CustomMedia")
    video.ObserveField("wasClosed", "OnMediaViewWasClosed")
    video.mode      = "video"
    content         = CreateObject("roSGNode", "ContentNode")
    access_token    = GetAuthData()
    '
    content.Update({
        HandlerConfigMedia: {
            name: "VodContentHandler"
            fields: {
                content_id: contentItem.id.ToStr()
                access_token:  access_token
            }
        }
    }, true)
    ? "content "; content;
    video.content = content
    '  
    video.isContentList = false
    ? "video view "; video
    video.control       = "play"
    video.ObserveField("state", "OnMediaState")
    ' Show the media view
    m.top.ComponentController.CallFunc("show", {
        view: video
    })
    return video
end function

these are the logs:


SGDEX: View Manager runProcedure addView
SGDEX: newView.setFocus(true)
Media state changed to none
itemContent <Component: roAssociativeArray> =
{
    description: "Billy Beane (Brad Pitt), general manager of the Oakland A's, one day has an epiphany: Baseball's conventional wisdom is all wrong. Faced with a tight budget, Beane must reinvent his team by outsmarting the richer ball clubs. Joining forces with Ivy League"
    id: "7"
    streamformat: "hls"
    title: "Moneyball"
    url: "https://demo-l3-vod.secure.footprint.net/360sports/VMFS1/FILES/public/videos/360sports/136495/playlist.m3u8"
}
Media state changed to none
Media state changed to buffering
Media state changed to error
[SGDEX] media.errorCode == -3 media.errorMsg == An unexpected problem (but not server timeout or HTTP error) has been detected.
SGDEX: fire close for this View
SGDEX: Showing previous View

but the HandlerConfigMedia doesn't work properly

Fixed