Skip to content

Instantly share code, notes, and snippets.

@umer936
Last active February 16, 2017 20:02
Show Gist options
  • Save umer936/13d29714a272ff24b2f5d2554d4f1125 to your computer and use it in GitHub Desktop.
Save umer936/13d29714a272ff24b2f5d2554d4f1125 to your computer and use it in GitHub Desktop.
Change playback rate on JWPlayer Flash videos. Credit to Hitesh on StackOverflow.
innerDoc = document.getElementsByClassName("jwplayer");
var getVideo = innerDoc[0].getElementsByTagName('video')[0];
var newspeed = prompt("Current Speed: " + getVideo.playbackRate + "\nNew Speed: ");
getVideo.playbackRate = newspeed;