Forum Discussion

thdev's avatar
thdev
Channel Surfer
4 years ago

Displaying video inside a 2dapi game channel

Hi all.

I've been developing a roku game channel using 2dAPI with roScreen element.

One of the features I'm trying to implement is: showing a 400*600 video within the game (during the game. not full screen).

From what I understand so far:
1. Scene graph components dont work with 2dapi 
2. roVideoPlayer is deprecated since 2017

Is there any way to implement this? 

7 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    roVideoScreen was deprecated.  I don't think roVideoPlayer was.

    • thdev's avatar
      thdev
      Channel Surfer

      roVideoPlayer is deprecated according to the logs from the device.
      When I create the object it sends the log that it's deprecated. 

      Any other options you can think of? 

      • necrotek's avatar
        necrotek
        Roku Guru

        If you are unable to use roVideoPlayer (it may be deprecated but sometimes exceptions can be made for games) you cannot mix Scenegraph and roScreen components but you can switch between them. If you just need to play a video, spin up a Scenegraph context to play the video and drop back to roScreen on closing scenegraph.