Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

HLS player example

This example can be used for HLS playback of the following types of streams published on Web Call Server

...

In the URL on the screenshot, 192.168.1.9 is the address of the WCS server.
Port 8082 is used for HLS.
HLS files are saved to directory WCS_HOME/hls/streamName (streamName is the name of the stream being played).
When Apply button is clicked, video source is set to the stream URL and playback can be started.

Code of the example

The path to the source code of the example on WCS server is:

...

Here host is the address of the WCS server.

Work with code of the example

To analyze the code, let's take the version of file hls-player.js with hash aad42ec93f01dd5ce8b50125d46273d27dfd3853, which is available here and can be downloaded with corresponding build 0.5.7.1894.

...