Abigor
Reel Rookie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2021
01:25 AM
How to use setAdConstraints method?
Hi,
Can anyone provide some example of using setAdConstraints method from RAF library?
Actually I can't figure out format of last parameter supportedMimeTypes. Documentation says it should be an associative array with entries of the form: {“mimeType” : “stream- Format”}. But what “stream- Format” mean?
2 REPLIES 2


Community Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2021
11:57 AM
Re: How to use setAdConstraints method?
Hi @Abigor,
Per the RAF API doc, the possible values for the mimeType key are as follows:
- “video/mp4”
- “video/mp4-h264”
- “video/x-mp4”
- “application/x-mpegurl”
- “application/json”.
IndianaJones92
Newbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2024
03:34 PM
Re: How to use setAdConstraints method?
Those are the default mimetypes but which mimetypes are supported by Roku?