Toggle between HD and SD
The bitrate selection plugin offers a simple interface to toggle between High Definition and Standard Definition video. A HD button is presented to the user in the controlbar and another one on screen.
The switching information is shown in a splash screen on top of the video, but note that switching happens asynchronously and it takes a while before it is completed. You need to wait a bit after pressing the button. These delays happen because of client-server communication and because the previous stream data is first consumed from the buffer. Only then the data corresponding to the next bitrate can be processed and played.
The configuration is simple: You need the plugin in the configuration and
bitrates defined in the clip object.
Note: By default the plugin selects the first item of the
at start of playback. Marking an item with
isDefault: true select this
item and also makes the splash screen appear at start.