// 1. This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// 2. This function creates an
Sunday, June 19, 2016
P
function onPlayerStateChange(event) {
$(".quality").click(function() {
event.target.stopVideo();
event.target.setPlaybackQuality('hd720');
event.target.playVideo();
});
}
No comments:
Post a Comment