Audio Visualiser with HLS

HLS Audio Visualiser Demo

HLS streaming Audio Visualiser example

Note: Safari has an unfixed Webkit bug making Native HLS streaming impossible to get audio data. A complicated workaround is integrated using Flowplayer's HLS.JS plugin and MediaSource to capture and process the data. Modern macOS and IOS Safari browsers support Mediasource streaming.

    
  <div class="flex flex-col w-full">
          <div id="hls" class=""></div>

  </div>
  <script type="text/javascript">
  	var player = flowplayer("#hls", {
    "hls": {
        "preferManagedMediaSource": false
    },
    "src": [
        {
            "src": "https://videos.electroteque.org/hls/bigbuckbunny/playlist.m3u8",
            "type": "application/x-mpegurl"
        }
    ],
    "token": "eyJraWQiOiIyeHRpc0Q5NHZzTjIiLCJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjIjoie1wiYWNsXCI6NixcImlkXCI6XCIyeHRpc0Q5NHZzTjJcIixcImRvbWFpblwiOltcImVsZWN0cm90ZXF1ZS5vcmdcIl19IiwiaXNzIjoiRmxvd3BsYXllciJ9.WLUkZHpDNoaXWDaFO2V5UfXm7SnDvE1pFAM0e7ppnFovOSyCCZM-b8gQNBSElB5yirTP__x76Qyo8pMWh6lVrw",
    "visualiser": {
        "type": "vu"
    }
});
  </script>