Created
February 17, 2016 11:23
-
-
Save johnsardine/87df9cc8b1f0744fb315 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var videoPlayerEmbed = jQuery('#playerID'); // Get player embed | |
var videoURL = videoPlayerEmbed.prop('src'); // Get current src | |
videoURL = videoURL.replace("&autoplay=1", ""); // Remove autoplay if exists | |
videoPlayerEmbed.prop('src',''); // Remove src to reset | |
videoPlayerEmbed.prop('src',videoURL); // Add src again, resetting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment