Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Abigor
Reel Rookie

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?

 

Tags (1)
1 REPLY 1
RokuJonathanD
Community Moderator
Community Moderator

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”.
0 Kudos