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

Scene Graph XML: failed to create media player

Hi,

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:

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


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
1 REPLY 1
RowanG1Bilue
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