Premier test dash mpd
This commit is contained in:
parent
093b62b211
commit
c6db7e48de
2 changed files with 21 additions and 6 deletions
12
index.html
12
index.html
|
@ -64,9 +64,7 @@
|
|||
</nav>
|
||||
|
||||
<header class="masthead">
|
||||
<video id="masthead-video" autoplay loop muted>
|
||||
<source src="video/1_Compilation_Graphique.webm" type="video/webm">
|
||||
</video>
|
||||
<video id="masthead-video" loop></video>
|
||||
|
||||
<a class="btn btn-default btn-xl" href="#about">
|
||||
<i class="fa fa-angle-down fa-2x" aria-hidden="true"></i>
|
||||
|
@ -191,6 +189,8 @@
|
|||
<!-- Custom scripts for this template -->
|
||||
<script src="js/creative.min.js"></script>
|
||||
|
||||
<script src="http://cdn.dashjs.org/latest/dash.all.min.js"></script>
|
||||
|
||||
<script>
|
||||
var masthead_video = document.getElementById("masthead-video");
|
||||
var video_button = document.getElementById("video-sound");
|
||||
|
@ -205,6 +205,12 @@
|
|||
}
|
||||
};
|
||||
|
||||
var url = "video/1_Compilation_Graphique/1_Compilation_Graphique.mpd";
|
||||
var player = dashjs.MediaPlayer().create();
|
||||
player.initialize(document.querySelector("#masthead-video"), url, true);
|
||||
player.setFastSwitchEnabled(true);
|
||||
player.setMute(true);
|
||||
|
||||
var portfolio_videos = document.getElementsByClassName('video-portfolio');
|
||||
|
||||
for (video_div of portfolio_videos) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue