html5 - How can I show synchronized Video and waveform Audio in javascript? -


i want show video , audio waveform @ same time in javascript video player. position should synchronized, ie if play video, position in waveform view should adapt. tried following using wavesurfer.js cannot figure out how synchronize it:

<video id="video" class="video-js vjs-default-skin" controls> //  replace these own video files.       <source src="video.m4v" type="video/mp4" />      html5 video required example. </video>  <audio id="myaudio" class="video-js vjs-default-skin"></audio>  <script> var player = videojs("myaudio", {     controls: true,     autoplay: true,     loop: false,     width: 600,     height: 300,     plugins: {         wavesurfer: {             src: "media/heres_johnny.wav",             msdisplaymax: 10,             wavecolor: "grey",             progresscolor: "black",             cursorcolor: "black",             hidescrollbar: true         }     } }); </script> 

how can synchronize views correctly?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -