Forum Discussion
BCVatOVG
10 years agoVisitor
The problem is that you can not have 2 video screens at the same time. You need to capture the position, stop the video, play the ads and then set the seek to the current position and then continue play.
video_player = scene.FindNode("video_player")
video_player.observeField("position", m.port)
video_ads_to_play = m.ads.ads_to_play(curent_position)
if video_ads_to_play <> invalid
video_player.control = "stop"
if m.ads.play_ads(video_ads_to_play)
video_player.seek = curent_position
video_player.control = "play"
end if
end if