Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Abigor
Level 7

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)
0 Kudos
1 Reply
RokuJonathanD
Roku Employee
Roku Employee

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