Forum Discussion

Veeta's avatar
Veeta
Visitor
10 years ago

Mixing roVideoPlayer and SceneGraph

I'm working on a project where the video player has had quite a bit of customization done to it using roVideoPlayer. I'm wondering if I can launch the scene graph, then use a unique media id passed into the main brightscript thread in order to hide/destroy the scene graph and display roVideoPlayer. So far I haven't had luck reading field values from the SceneGraph into the main brightscript thread.

1 Reply

  • I was able to get this to work, posting here for future reference. From the main brightscript thread, callbacks sent in to observeField aren't invoked. Perhaps this is documented somewhere already. I had to poll the value of the roSGNode field to watch for a change.

    Finally, I was somewhat surprised to see roVideoScreen play the video without having to tear down or hide the roSGScreen. And once the roVideoScreen closes, the scene graph is shown again. Hopefully this is behavior I can rely on going forward.