Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
joycewang
Level 7

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
Level 8

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