<div id="player"></div> <script> // 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); // 3. This function creates an <iframe> (and YouTube player) // after the API code downloads. var player; function onYouTubeIframeAPIReady() { player = new YT.Player('player', { height: '390', width: '640', videoId: 'Ap0Ve4q31DU', events: { 'onReady': onPlayerReady } }); } // set the PlayBackRate 0.25,0.5,1,1.25,1.5,2 function onPlayerReady(event) { player.setPlaybackRate(2); } </script>Please don't forget to update YouTube video id with your video id
How to play YouTube Iframe video at different speeds
[youtube https://www.youtube.com/embed/Ap0Ve4q31DU]
Here we are going to explain the way of play YouTube video on different speeds. As you normally you can't set the speed of your YouTube video in embed iframe code.
To set change speed of YouTube video, you will require to use the YouTube APIs. Without Youtube API you can't change youtube video play speed.
Follow given steps to add video on your site with faster speed or slower speed.
Copy below HTML and paste it on your site where you want to play YouTube video on different speed