HLS

Adi Heymann -

The HLS (HTTP Live Streaming) protocol objective is to stream video content. It was developed as an alternative to Flash video, and enables using longer content than the "heavy" MP4 content.

The HLS protocol main feature is that it can dynamically adjust the bitrate of the streamed video according to the client's connection speed, it will provide the highest possible quality that will prevent buffering from occurring.

The playlist format allowed is M3U8 Extended. In the HLS protocol, the MP4 video content is chopped into short video chunks which have indexes inside an m3u8 playlist.

How to use it with the Cedato player?

The tag must be used as in the following examples. First create the player as any other HTML Player. The content can't be set in the dashboard, just copy the following examples and make sure to replace the Player ID, content url and any other necessary settings with the correct ones. (Other ad units should be configured similar to the In-Content)

In-Content:
 
<div id="ads"></div>
<script>
  document.addEventListener('cedatoAdUnitReady', function() {
    CEDATO.InContent({
      player: {
        playerId: 111111111111,
        protocol: 'https:',
        domain: 'EXTRACTED_DOMAIN',
        servingDomain: 'algovid.com'
      },
      position: 'ads',
      control: {
        closeButton: true,
        closeOnAdEnd: false,
        closeOnContentEnd: false,
        soundOnHover: false,
        playOnVisibility: 50,
        pauseOnVisibility: 25,
        pauseOnHiddenTab: true,
        controlBar: true,
      },
    });
  });
</script>
<script async src="https://c.algovid.com/player/ad-units.2.1.js"></script>
 

Basic Player:
 
<div id="video1111111111[CB]" style="width: 300px; height: 250px;">
  <script>
   window.CEDATO_INIT=(window.CEDATO_INIT || {});
   window.CEDATO_INIT["video1111111111[CB]"] = function() {
  };
  </script>
</div>

 

Have more questions? Submit a request

0 Comments

Article is closed for comments.