Ok, so I want to embed youtube videos but also remove the annoying annotations. The following code works great from to embed the video
youtube.com/watch?v=mNf0v2WkV0U
But whatever I seem to do, I cannot add the following parameter:
iv_load_policy=3
Im not sure if its even possible to to add this within the wordpress embed code? I then found something intresting:
$('object').each(function(){
var $param = $(this).children(':first-child');
var newUrl = $param.attr('value') + '&iv_load_policy=3';
$param.attr('value', newUrl);
});
The above code is meant to set all youtube videos globally (iv_load_policy=3
) but i think Im doing it wrong.
Thanks in advance.
2 Answers
It doesn’t look like load policies are configurable with WP’s auto-embed.
But see the docs on how to use WP’s embedding: http://codex.wordpress.org/Embeds
And see the Developer Resources and API at WP: http://developer.wordpress.com/docs/oembed-provider-api/
WP’s auto-embedding uses oEmbed, and the specs and API are here: http://oembed.com/