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?

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

Those are the default mimetypes but which mimetypes are supported by Roku?