Blackhawk
Roku Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2016
02:56 PM
Inserting preroll ads
I was studying the "PlayContentWithAds" method and I discovered this
Will Preroll works like this?
Or this?
adIface = Roku_Ads()
print "Roku_Ads library version: " + adIface.getLibVersion()
http://video.ted.com/talks/podcast/DavidKelley_2002_480.mp4
'adIface.setAdUrl()
Will Preroll works like this?
adIface = Roku_Ads()
print "Roku_Ads library version: " + adIface.getLibVersion()
'adIface.setAdUrl()
Or this?
adIface = Roku_Ads()
print "Roku_Ads library version: " + adIface.getLibVersion()
' lengthy (20+ min.) TED talk to allow time for testing multiple ad pods
videoContent = { streamFormat : "mp4" }
videoContent.stream = { url: "http://video.ted.com/talks/podcast/DavidKelley_2002_480.mp4",
bitrate: 800,
quality: false
}
'adIface.setAdUrl()
adPods = adIface.getAds()
playContent = adIface.showAds(adPods) ' show preroll ad pod (if any)