"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".
videoArray = [
' Pre-roll
{
Stream: { url: url }
StreamFormat: fmt
},
' Episode
episode
]
"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.
"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.
"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?
"TheEndless" wrote:
In combination with the PlayStart attribute, yes. You'd want to make sure you break on a segment boundary,