Skip to main content

Initializing Flash player with set Bitrate

Legacy (for Flash video player only)

By default Flash player selects the highest quality encoded video stream to initialize playback. Flash player is also not adaptive.

Many users wish to make available a high-resolution and high-bitrate video stream for their users, but want as default a lower resolution stream. Users can then can pass the forcedBitrate parameter. On entering the value, the available bitrate closest to the entered value is selected. Setting forcedBitrate would initialize playback at that bitrate. For example for video files encoded at 300, 700, 1000 and 1600 kbps, entering "forcedBitrate": 900 would initialize video stream at 1000kbps, which is the closest available bitrate.

Adaptive playback in HTML5 player by default initializes with the lowest bitrate stream, and then immediately switches to the highest quality video stream for the given network bandwidth. Users can manually switch their preferred stream in both Flash and HTML5 player.

{  "forcedBitrate": 900}

Get OTP Sample Code#

The sample videoID is 1234567890 and the API Secret Key is a1b2c3d4e5. This sample code below only passes the forcedBitrate as parameter.

curl -X POST \  https://dev.vdocipher.com/api/videos/1234567890/otp \  -H 'Accept: application/json' \  -H 'Authorization: Apisecret a1b2c3d4e5' \  -H 'Content-Type: application/json' \  -d '{  "forcedBitrate":300}'