Roku Developer Program

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

different action using videoplayer sample

The videoplayer sample is great for my purposes but I'd like one of the categories to launch a full screen player and skip the details screen.

Ideally, it would launch a new screen with a half sized roVideoPlayer, so I guess my question is, how do I get one of the categories to launch a different but of code as opposed to pulling form the XML?
0 Kudos
4 Replies
adrianc1982
Level 7

Re: different action using videoplayer sample

if you are able to code a rovideoplayer and do code its easy to call one video player or another.

you can look the name of the file on the xml for example and if it carries VP_videofile.mkv

the VP_ being your wild card then you can send the video to a rovideoplayer..

just let me tell you the rovideoplayer can be a bitch sometimes to code..

is that what you are looking for?
0 Kudos
pablogott
Level 7

Re: different action using videoplayer sample

That is what I'm looking for, and I have a working roVideoPlayer. I'll give it a shot, thanks for the reply.
0 Kudos
adrianc1982
Level 7

Re: different action using videoplayer sample

heres some code i use to check strings..

if Instr(1, YourFileBaseName, "VP_")
runVideo(params)
else
runDescription(params)
end if
0 Kudos
pablogott
Level 7

Re: different action using videoplayer sample

That is helpful, thank you.
0 Kudos