To start with, I grabbed the Player, PlayerTask, and VideoContent and put them in my project. then in the DetailsScreen.brs file, I updated this:
Sub onItemSelected() print "DetailsScreen.brs - [onItemSelected]" ' first button is Play ' if m.top.itemSelected = 0 m.Player.content = m.top.content m.Player.visible = true m.Player.setFocus(true) m.Player.control = "play" end if End Sub
and a few other places, replacing "videoPlayer" with "Player".
Now, I am able to get a preroll ad, and it then fires off the video.... but the ad is smaller than the screen and has a green tint over it. My initial guess is in the PlayerTask.brs function "playContentWithAds", there's a "view" being loaded that's not quite right
sub playContentWithAds() print "PlayerTask.brs [playContentWithAds]" video = m.top.video
' `view` is the node under which RAF should display its UI (passed as 3rd argument of showAds()) ' view = video.getParent()
But I'm not sure which "view" I need to use to make the ad full-screen and NOT green. And ideas?