set custom playback time in youtube code example Example: youtube video speed jconsole document.getElementsByTagName("video")[0].playbackRate = x