I have added video to my ember app using videojs plugin .. i have done bower install videojs-youtube and npm install videojs-youtube in my app. I am showing the video as a pop up but video is not autoplayed . how to auto play the video using an ember app..
code---->
id="vid1"
class="video-js vjs-default-skin"
controls
width="640" height="264"
data-setup='{"techOrder": ["youtube"], "sources": [{ "type": "video/youtube", "src": "https://www.youtube.com/watch?v=xjS6SftYQaQ"}], "youtube": { "iv_load_policy": 1 } }'>
javascript>>>
play(){
$('#video').modal('show');
$("#vid1")[0].src += "&autoplay=1";
},
Aucun commentaire:
Enregistrer un commentaire