Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pablogott
Visitor

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 4
adrianc1982
Visitor

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
Visitor

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
Visitor

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
Visitor

Re: different action using videoplayer sample

That is helpful, thank you.
0 Kudos