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.
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 .