cpjamloki
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2015
04:34 AM
roVideoScreen CLOSE and OPEN for few second(0.5 second).
Subject: roVideoScreen CLOSE and OPEN for few second on hitting different url.
Before playing my video i am hitting URL which contains some Advertise(i mean first play Advertise then play video selected by user) in roVideoScreen.
If i am using same roVideoScreen for different url, then why it close for few second(a little bit as eye blink twice) when it goes to hit another url.
please share your views if anybody have any idea .
Before playing my video i am hitting URL which contains some Advertise(i mean first play Advertise then play video selected by user) in roVideoScreen.
Function playAdsVideo(Boolean value here)
m.ADFullScreenBoolean=true
m.myFullPlayer = CreateObject("roVideoScreen")
m.myFullPlayer.SetMessagePort(port)
m.myFullPlayer.SetPositionNotificationPeriod(1)
if(m.ADFullScreenBoolean=true)
episode = CreateObject("roAssociativeArray")
episode["Streams"] = { url: m.ADvertisevideoUrl}
episode["StreamFormat"] = "mp4"
else
m.isLiveVideoPlay = true
episode = CreateObject("roAssociativeArray")
episode["Streams"] = { url: m.Selected_videoUrl}
episode["StreamFormat"] = "mp4"
end if
m.myFullPlayer.SetContent(episode)
m.myFullPlayer.Show()
While true
msg = wait(0, port)
if type(msg) = "roVideoScreenEvent" then
if(msg.isFullResult())
print "Video playback has completed at end of content."
m.ADFullScreenBoolean=false
playAdsVideo(true) [b]REM***calling same function again for another url***[/b]
end if
end if
End While
End Function
If i am using same roVideoScreen for different url, then why it close for few second(a little bit as eye blink twice) when it goes to hit another url.
please share your views if anybody have any idea .
5 REPLIES 5
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2015
11:08 AM
Re: roVideoScreen CLOSE and OPEN for few second(0.5 second).
If you make a black rocanvas or roscreen before you display the first videoplayer for your ad, then when the video ends the user will see black, then your videoscreen is shown for the content with the buffering bar and it will play.
(That will get rid of the flash you see)
Alternately, if you have the url for the ad and the url for the main content, you could send both pieces at once to the videoscreen/videoplayer so it uses them as a playlist with the buffer bar for each.
Generally, the first is the preferred way to do it - so the end user can't skip the ad, but they will be able to fast forward through the main content if they want to.
(That will get rid of the flash you see)
Alternately, if you have the url for the ad and the url for the main content, you could send both pieces at once to the videoscreen/videoplayer so it uses them as a playlist with the buffer bar for each.
Generally, the first is the preferred way to do it - so the end user can't skip the ad, but they will be able to fast forward through the main content if they want to.
cpjamloki
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2015
10:10 AM
Re: roVideoScreen CLOSE and OPEN for few second(0.5 second).
thanks destruk for reply.
actually i have two different StreamFormat (1) .mp4 (2) .hls(m3u8).
So how i should send both pieces at once?
So it will be my pleasure if you explain with short example.
if you have the url for the ad and the url for the main content, you could send both pieces at once to the videoscreen/videoplayer so it uses them as a playlist with the buffer bar for each.
actually i have two different StreamFormat (1) .mp4 (2) .hls(m3u8).
So how i should send both pieces at once?
So it will be my pleasure if you explain with short example.
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2015
03:45 PM
Re: roVideoScreen CLOSE and OPEN for few second(0.5 second).
You can set the stream format individually for each piece of content in a playlist. It's part of the metadata for the content item along with the video title, description, thumbnail, url, etc.
cpjamloki
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2015
10:13 AM
Re: roVideoScreen CLOSE and OPEN for few second(0.5 second).
Thanks destruk for sharing your views.
After several attemp i found that player on roku automattically close for a little bit time(before retrieving) during play another url whether it is inside in array as a playlist (as you suggested ). i have found a best solution for this a black canvas behind player . what you think about this is it good trick or bad idea? is there any channel in you knowledge on roku where videos are randomly playing one by one.
After several attemp i found that player on roku automattically close for a little bit time(before retrieving) during play another url whether it is inside in array as a playlist (as you suggested ). i have found a best solution for this a black canvas behind player . what you think about this is it good trick or bad idea? is there any channel in you knowledge on roku where videos are randomly playing one by one.
destruk
Streaming Star
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2015
11:25 AM
Re: roVideoScreen CLOSE and OPEN for few second(0.5 second).
If it works for you to remove the issue, it's great. 🙂