Control Panel — API Documentation

Documentation

API Documentation: sevu.request

Synopsis

For HLS urls, the SEVU token key/pass must be appended as parameters, after the path and the playlist.m3u8 specification.
For RTMP urls, because JW Player uses "mp4:" as its separator to specify the path to a stream, we must place the parameters after the rtmp path, but before the mp4: separator.

Changes to JW Player Embed Generator Code

To make your SEVU tickets work with JW player in Flash, using RTMP, 
you must reverse the order in which the parameters and stream path appear.
This is horribly non-intuitive, but necessary if you want flash to work.

Use the Embed Generator to get your player code, and then edit the sources rtmp url,
which is the first file: line in that block.
Edit so that the "?key=" part goes after /play/ and the "mp4:" separator goes after 
the "&pass=" part of the urls.

For the HLS http url, simply append the parameters after "playlist.m3u8", which 
makes sense.

See below:

sources: [
{ file: 'rtmp://example-vsn.secdn.net/example-vod/play/?key=example-.546bb22e0ec705.66545408&pass=931dc2d0-bb00-4315-8b56-3a8ebb84mp4:sestore8/example/example.mp4' },
],
{ file: 'http://example-hls.secdn.net/example-vod/play/sestore8/example/example.mp4/playlist.m3u8?key=example-.546bb22e0ec705.66545408&pass=931dc2d0-bb00-4315-8b56-3a8ebb84'}
],

Put your ticket parameters, key and pass, into JW like this, and your streams will play.