getContentType() types?

99 views
Skip to first unread message

Larry Doyle

unread,
Feb 22, 2017, 3:52:52 PM2/22/17
to Interactive Media Ads SDK
Please supply a comprehensive list of values are returned by the HTML5 SDK ad.getContentType() method and which ones correspond to VPAID ads. 

Regards,
Larry Doyle
CBSInteractive

Chris Feldman (IMA SDK Team)

unread,
Feb 23, 2017, 9:54:22 AM2/23/17
to Interactive Media Ads SDK
Hi Larry,

The getContentType method will return whatever mime type is chosen for playback. These include:

application/javascript [VPAID]
application/x-shockwave-flash [VPAID]
video/mp4
video/mpeg
application/x-mpegURL
video/ogg
video/3gpp
video/webm
audio/mpeg
audio/mp4
text/html
application/flash
application/shockwave-flash
text/javascript
image/jpeg
image/jpg
image/png
image/gif

This value is in the VAST response under the 'type' property of the MediaFile element, and you will be limited by the capabilities of your video player.

Let me know if you have any questions.

Regards,
Chris Feldman
IMA SDK Team

Larry Doyle

unread,
Feb 23, 2017, 12:58:56 PM2/23/17
to Interactive Media Ads SDK, Chris Xiques
Thanks Chris, that's exactly what I needed!

--
You received this message because you are subscribed to a topic in the Google Groups "Interactive Media Ads SDK" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ima-sdk/TaKullfdqH4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ima-sdk+unsubscribe@googlegroups.com.
To post to this group, send email to ima...@googlegroups.com.
Visit this group at https://groups.google.com/group/ima-sdk.
For more options, visit https://groups.google.com/d/optout.



--
Larry Doyle
Principal Software Engineer, Video Infrastructure
415.344.2910
CBSInteracitve
235 Second St, San Francisco, CA 94105

Reply all
Reply to author
Forward
0 new messages