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: 
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

"TheEndless" wrote:
I'd bet this line is your problem: "url2 = episode.StreamUrls"

Why are you using StreamUrls here, but using the Stream associative array in your content array? StreamUrls is an array of strings, whereas Stream.Url is a single string. I don't know what "episode" looks like, but I would think that line should either be "url2 = episode.StreamUrls[0]" or "url2 = episode.Stream.Url".



i used url2 = episode.StreamUrls[0] and that worked, but i need to play with it a bit because its not playing it as a 2 minute preview as i had it set up. so must be something else in there i am missing

also is there a way to stop the FF in these? i thought i read that somewhere, i know how to disable the Nav i have done that

hey endless how about some help on how to create that array correctly in my other example, i lost half a head of hair on that already!
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
TheEndless
Channel Surfer

Re: playall videos like onion news network

Why are you copying the data from "episode" into new objects? It sounds like they're already valid content items, so why not just pass them directly in the array to the video player instead?

videoArray = [
' Pre-roll
{
Stream: { url: url }
StreamFormat: fmt
},
' Episode
episode
]

The content item you're currently passing to the video player only has a URL and a StreamFormat... it doesn't have a PlayDuration for a preview.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

that worked endless thanks... i tried something similar to that last night and i cant remember what happened to it but it didnt work.

yeah its odd even though the duration is set at 2 minutes it will play past that, but its only showing 2 min on ther video and if you try to FF it will go back to a earlier time its strange.

how could i keep that duration in tact?

right now im adding the controls of the canvas.
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
TheEndless
Channel Surfer

Re: playall videos like onion news network

"dynamitemedia" wrote:
that worked endless thanks... i tried something similar to that last night and i cant remember what happened to it but it didnt work.

yeah its odd even though the duration is set at 2 minutes it will play past that, but its only showing 2 min on ther video and if you try to FF it will go back to a earlier time its strange.

how could i keep that duration in tact?

right now im adding the controls of the canvas.

If PlayDuration doesn't work (I've never used it, so I don't know), you could capture the PositionNotification event and stop the video once it's reached or exceeded two minutes.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

the duration has worked until now, and i think its cause of in the app detail screen its not setup for the prerolls and will do duration on the first video it plays.

which the preroll is only like 20 seconds ...
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
TheEndless
Channel Surfer

Re: playall videos like onion news network

PlayDuration should be set on your "episode" object. You're creating a new video screen for each video in your array, so they are independent of each other. It doesn't have anything to do with the fact that you're playing multiple videos. If it was working before, but isn't now, then you probably inadvertently changed something somewhere.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

actually it is working just fine, i cant seem to recreate what that issue was before....
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

"TheEndless" wrote:
If PlayDuration doesn't work (I've never used it, so I don't know), you could capture the PositionNotification event and stop the video once it's reached or exceeded two minutes.


couldn't you essentially do this to play a "midroll" ad video?
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos
TheEndless
Channel Surfer

Re: playall videos like onion news network

"dynamitemedia" wrote:
"TheEndless" wrote:
If PlayDuration doesn't work (I've never used it, so I don't know), you could capture the PositionNotification event and stop the video once it's reached or exceeded two minutes.


couldn't you essentially do this to play a "midroll" ad video?

In combination with the PlayStart attribute, yes. You'd want to make sure you break on a segment boundary, though, if using HLS, otherwise you could get some repeated video when you restart playback.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos
dynamitemedia
Binge Watcher

Re: playall videos like onion news network

"TheEndless" wrote:
In combination with the PlayStart attribute, yes. You'd want to make sure you break on a segment boundary,


sounds interesting!!

just to be sure i understand, what do you mean exactly by "segment boundary" ?

you have an example to play with to get this working ? i know i will have to make changes to it to make it work in the video player example
Twitter: iptvmyway facebook: iptvmyay
Channels: Warriors of War, Go Fight Live, Heading Outdoorz, IPTVmyway
0 Kudos