Your Digital Media Has Never Looked So Good

 
User avatar
Romans_I_XVI
Topic Author
Posts: 269
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Is roVideoPlayer Not Depreciated?

Thu Feb 07, 2019 8:03 am

So I am considering integrating some video playback within my games. The roVideoPlayer component was labeled as depreciated for a while however the docs no longer say that. Additionally, I believe roVideoPlayer is used for displaying ads, so it's been my suspicion for some time that it wouldn't actually get removed. Clarification would be much appreciated.

Thanks
Austin
 
User avatar
RokuNB
Posts: 459
Joined: Fri Mar 31, 2017 2:22 pm

Re: Is roVideoPlayer Not Depreciated?

Thu Feb 07, 2019 9:52 pm

roVideoPlayer and roVideoPlayerEvent became, uh, un-deprecated i believe.
Note these are pure video play, no UI widgets. You should be fine using that in a game together with a roScreen.

Indeed, RAF uses roVideoPlayer to display ads in SDK1 apps (incl. games). In most RSG apps, a Video node is used for the ads.
 
User avatar
Romans_I_XVI
Topic Author
Posts: 269
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Re: Is roVideoPlayer Not Depreciated?

Fri Feb 15, 2019 1:27 pm

Perfect, that's great to know, yes I would be using it along with roScreen.

Thanks :)
 
User avatar
Romans_I_XVI
Topic Author
Posts: 269
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Re: Is roVideoPlayer Not Depreciated?

Sat Feb 23, 2019 4:45 pm

Turns out roVideoPlayer is super hard to use with roScreen, especially when you don't want to use the whole screen for the video player. You have to cut out a transparent hole with DrawRect on the roScreen with SetAlphaEnable as false. Also, fun fact, it must be a black transparent hole (&h00000000) to work on all devices, I had it as a white transparent hole (&FFFFFF00) and realized it doesn't work on my Roku TV.

This is all really painful to work with, I'm not sure why roVideoPlayer renders before roScreen, it would be nice if it was on top as I assume you would always want videos on top.
 
User avatar
Komag
Posts: 801
Joined: Fri Aug 22, 2014 3:42 am

Re: Is roVideoPlayer Not Depreciated?

Sun Feb 24, 2019 12:37 am

Fascinating! I'm not ever planning to use this, but I'm curious what you're working on in this regard, as I never thought such a thing was possible.
 
User avatar
Romans_I_XVI
Topic Author
Posts: 269
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Re: Is roVideoPlayer Not Depreciated?

Sun Feb 24, 2019 8:17 am

Ah, well it's nothing too interesting, I'm working on a "More Games" overlay that would go in my games to give people a way to easily learn about and install/launch my other games.

Image

I have some video trailers that can play in that top right slideshow section there.
 
User avatar
Komag
Posts: 801
Joined: Fri Aug 22, 2014 3:42 am

Re: Is roVideoPlayer Not Depreciated?

Mon Feb 25, 2019 1:18 pm

Ah, good idea
 
User avatar
Komag
Posts: 801
Joined: Fri Aug 22, 2014 3:42 am

Re: Is roVideoPlayer Not Depreciated?

Mon Feb 25, 2019 1:18 pm

(oops, duplicate post - how do you delete a post?)
Last edited by Komag on Sun Mar 03, 2019 1:17 am, edited 1 time in total.
 
destruk
Posts: 2719
Joined: Sat Dec 18, 2010 4:58 pm

Re: Is roVideoPlayer Not Depreciated?

Sat Mar 02, 2019 1:34 pm

I tried that Snake game on a Roku 4 and it just immediately crashes back to the Roku home screen, so you might want to look at that.
 
User avatar
Romans_I_XVI
Topic Author
Posts: 269
Joined: Wed Nov 19, 2014 10:25 pm
Contact:

Re: Is roVideoPlayer Not Depreciated?

Wed Mar 06, 2019 12:34 pm

Thanks destruk, I'll need to look in to that.

Who is online

Users browsing this forum: No registered users and 4 guests