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.
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Scene Graph XML: failed to create media player


I'm sometimes having this problem when using video roSGNode to play streams: failed to create media player.

So I use a single video tag in the entire app, and just change the content data when play another song. The UI pages are switched inside another roSGNode, here are the children defined in my app scene:

<Video id="player" visible="false"/>
<Group id="pageNode"></Group>

Sometimes even when I get this error, the playback can still working. Not sure if this is a memory problem, as when I quit app by "home" button, there are many orphaned objects. Reboot the device can solve the problem. Anyone knows the reason or solutions?

Many thanks.
0 Kudos
Binge Watcher

Re: Scene Graph XML: failed to create media player

What resolved it for me was to introduce a slight delay before press play. Used a Timer object.

0 Kudos