Skip to content

VOD Playback

Content:

Embedding the video player in a webpage

Flussonic's built-in HTTP server can serve a special embed.html page to client software. This page can be used to insert video into a website, or to view VOD content in a browser.

It is available using the following URL:


http://FLUSSONIC-IP/vod/bunny.mp4/embed.html

Learn more about this feature in this article: Adding video to websites (embed.html).

Playing files over different protocols

This section demonstrates how to play VOD files over several different protocols.

In our example, we will play a file at the path /movies/example/s01e02.mp4. We have configured a VOD location like so:


vod vod {
  storage /movies;
}

For the file on disk in /movies/example/s01e02.mp4, you should use the following URLs as sources for the player:

  • Playing a VOD file via HLS (iOS, Android, STB)

http://FLUSSONIC-IP:80/vod/example/s01e02.mp4/index.m3u8

Playing a VOD file via RTMP (Jwplayer, Flowplayer, Uppod)

application: rtmp://FLUSSONIC-IP/vod, path: example/s01e02.mp4.

  • Playing a VOD file via MSS

http://FLUSSONIC-IP:80/vod/elementary/s01e02.mp4.isml/manifest

You can see the list of all supported protocols along with the URL for playing in the web interface: open the VOD location, click Browse opposite the path to the location, then click any file. The list of addresses to play the file will be displayed on the right (see the screenshot in Playing VOD files from the UI).

Playing VOD files from the UI

Video files can be played not only from a player or a browser, but also from the Flussonic's UI. Note that the UI can only play files that are in VOD locations.

Go to the VOD file browser page and select a file.

Flussonic VOD

Multi-language broadcasting

HLS protocol allows broadcasting video content with multiple audio and subtitle tracks, each in a different language. Flussonic Media Server automatically enables multi-language broadcasting if extra audio tracks or tx3g subtitle tracks are detected in a VOD file.

Exporting subtitle tracks as SRT

Flussonic Media Server can serve subtitle tracks in the SRT (SubRip Text) format. This is the only way to display subtitles on certain platforms (e.g. some Flash players). A VOD file's SRT subtitle track can be retrieved over HTTP:


http://192.168.2.3:80/vod/video.mp4/track-t1.srt

Adaptive streaming (multi-bitrate)

Adaptive streaming can be used to make sure that clients with low-bandwidth connections have a good viewing experience. There are two ways to enable adaptive streaming in Flussonic Media Server:

  • Use several files with the same content but with different bitrates.

    Flussonic automatically creates a single multi-bitrate playlist to play back these files. Read more about how to configure this feature.

  • Use a single file that contains multi-bitrate content.

    To play back a multi-bitrate MP4 file, you will need to create a manifest file for it. The Preparing Multi-bitrate Files section of our documentation gives detailed instructions on creating multi-bitrate files.

Restreaming VOD files

Copying a large VOD library between servers can be expensive. Flussonic is able to re-stream video files from one Flussonic server to another. This saves not only time but also storage space required to store VOD content. Saved resources can be used to enable caching of VOD content, which will increase the performance of a VOD re-streamer.

Example of VOD location configuration:

  • config file on the source VOD server:

vod myvod {
  storage /storage;
  download;
}

  • config file on the restreamer VOD server:

vod myvod {
  storage http://FLUSSONIC-IP:8081/vod;
  cache /mount/cache 500G misses=2;
}