Essai
Un article de GrandTerrier.
(Différences entre les versions)
Version du 28 janvier ~ genver 2018 à 11:45 (modifier) GdTerrier (Discuter | contributions) ← Différence précédente |
Version du 1 mars ~ meurzh 2018 à 14:35 (modifier) (undo) GdTerrier (Discuter | contributions) (Replacing page with '<JplayerM id="j1">KauffmannDallamEGPastorale.mp3</JplayerM> <JplayerM id="j2">MegodenasZipoliPastorale.mp3</JplayerM>') Différence suivante → |
||
Ligne 1: | Ligne 1: | ||
- | <addhtml> | + | <JplayerM id="j1">KauffmannDallamEGPastorale.mp3</JplayerM> |
- | <video id="videos" width="640" height="480" controls poster="http://www.grandterrier.net/wiki/files/LesNaufrageursBrabantImages.jpg" title="LesNaufrageursBrabantImage1"> | + | <JplayerM id="j2">MegodenasZipoliPastorale.mp3</JplayerM> |
- | <source src="http://www.grandterrier.net/wiki/files/LesNaufrageursBrabant1.mp4" type="video/mp4"> | + | |
- | Your browser does not support HTML5 video. | + | |
- | </video> | + | |
- | <br> | + | |
- | <button onclick="prevButton()">Vidéo précédente</button> | + | |
- | <button onclick="nextButton()">Vidéo suivante</button> | + | |
- | <script> | + | |
- | var myVideo=document.getElementById("videos"); | + | |
- | var videoList=['LesNaufrageursBrabant1.mp4','LesNaufrageursBrabant2.mp4','LesNaufrageursBrabant3.mp4','LesNaufrageursBrabant4.mp4']; | + | |
- | var index = videoList.indexOf(window.currentVideoName); | + | |
- | //Next button | + | |
- | function nextButton(){ | + | |
- | myVideo.pause(); | + | |
- | myVideo.currentTime=0; | + | |
- | index = index + 1; | + | |
- | if(index==videoList.length) | + | |
- | index = 0; | + | |
- | myVideo.src = 'http://www.grandterrier.net/wiki/files/'+videoList[index]; | + | |
- | myVideo.title = videoList[index]; | + | |
- | window.currentVideoName=videoList[index]; | + | |
- | myVideo.play(); | + | |
- | } | + | |
- | //Prev button | + | |
- | function prevButton(){ | + | |
- | myVideo.pause(); | + | |
- | myVideo.currentTime=0; | + | |
- | index = index - 1; | + | |
- | if(index<0) | + | |
- | index = videoList.length; | + | |
- | myVideo.src = 'http://www.grandterrier.net/wiki/files/'+videoList[index]; | + | |
- | myVideo.title = videoList[index]; | + | |
- | window.currentVideoName=videoList[index]; | + | |
- | myVideo.play(); | + | |
- | } | + | |
- | function playPause() | + | |
- | { | + | |
- | if (myVideo.paused) | + | |
- | myVideo.play(); | + | |
- | else | + | |
- | myVideo.pause(); | + | |
- | } | + | |
- | </script> | + | |
- | </addhtml> | + |
Version du 1 mars ~ meurzh 2018 à 14:35
Update Required To play the media you will need to either update your browser to a recent version or update your Flash plugin.
Update Required To play the media you will need to either update your browser to a recent version or update your Flash plugin.