xgplayer-dash-live

demo

Usage no npm install needed!

<script type="module">
  import xgplayerDashLive from 'https://cdn.skypack.dev/xgplayer-dash-live';
</script>

README

Demo

demo

Getting Started

<div id='mse'></div>
<script src="/packages/xgplayer/dist/index.js"></script>
<script src="/packages/xgplayer-dash-live/dist/index.js"></script>
<script>
    window.player = new window.DashLivePlayer({
    id: 'mse',
    url: 'https://220.243.131.114/app/stream/index.mpd',         
    autoplay: true,
    playsinline: true,
    height: '100%',
    width: '100%'
  });
</script>

Push Site

rtmp://220.243.131.114/app/stream

API and Configuration

DashLivePlayer.isSupported()

function isSupported(): boolean;

Return true if basic playback can works on your browser.

DashLivePlayer.install()

install plugin