You can do anything you want in response to an ad click event.... Below is a sample code snippet that will play a video:
--Kevin
Sub PlayAdVideo()
videoScreen = CreateObject("roVideoScreen")
port = CreateObject("roMessagePort")
videoScreen.SetMessagePort(port)
videoScreen.SetContent( { url: "http://myvideo.com/myAdVideo.mp4",
StreamFormat: "mp4"
} )
while true
msg = wait(0, screen.GetMessagePort())
if msg.isScreenClosed() then
return
endif
end while
End Sub
'***********************************************************************************************************
' On a poster screen already setup, you can add an ad and set the display mode via:
screen.SetAdURL(sdAdUrl, hdAdURL)
screen.SetAdDisplayMode("scale-to-fit")
while true
msg = wait(0, screen.GetMessagePort())
' handle other events as normal
if msg.isAdSelected() then
' play ad video
PlayAdVideo()
endif
end while