[wp-hackers] stopping an embedded video with javascript

Chris McCoy chris at lod.com
Wed Sep 11 11:56:59 UTC 2013

ive used jquery to do this, where i have a thumbnail and they click to
play it.


On 2013-09-11 7:03 AM, "Steve Taylor" <steve at sltaylor.co.uk> wrote:

>Hi folks,
>Does anyone know how to stop the playing of an embedded video (e.g.
>YouTube) using JavaScript?
>I'm looking at the YT docs
>(https://developers.google.com/youtube/player_parameters) and the WP
>core source, but I'm having trouble finding how to target the actual
>player object.
>I'm embedding the actual video programmatically, something like this:
>echo wp_oembed_get( $url . '&enablejsapi=1', array( 'width' => 500,
>'height' => 362 ) );
>Any pointers welcome!
>wp-hackers mailing list
>wp-hackers at lists.automattic.com

More information about the wp-hackers mailing list