Skip to content

Instantly share code, notes, and snippets.

View eljabbaryhicham's full-sized avatar

eljabbaryhicham

View GitHub Profile
window.addEventListener('load', ()=>{
var input1 = document.getElementById('id_1');
var input2 = document.getElementById('id_2');
input1.value = sessionStorage.getItem('name');
input2.value = sessionStorage.getItem('value');
});
@eljabbaryhicham
eljabbaryhicham / index.html
Created August 20, 2020 08:40
Plyr - HLS stream video
<div class="container">
<video controls crossorigin playsinline poster="https://bitdash-a.akamaihd.net/content/sintel/poster.png"></video>
</div>
<!-- Plyr resources and browser polyfills are specified in the pen settings -->
<!-- Hls.js 0.9.x and 0.10.x both have critical bugs affecting this demo. Using fixed git hash to when it was working (0.10.0 pre-release), until https://github.com/video-dev/hls.js/issues/1790 has been resolved -->
<script src="https://cdn.rawgit.com/video-dev/hls.js/18bb552/dist/hls.min.js"></script>