WordPress.org

Ready to get started?Download WordPress

Forums

WP YouTube Lyte
[resolved] Turn on Annotations by Default? (2 posts)

  1. webfreelanceRSA
    Member
    Posted 10 months ago #

    Hi,

    Thanks for the great plugin, works well.
    I would like to know how to have annotations on by default using the plugin. Currently they are off and need to be manually turned on when the video starts playing.

    Thank you

    http://wordpress.org/plugins/wp-youtube-lyte/

  2. futtta
    Member
    Plugin Author

    Posted 10 months ago #

    You could edit lyte(-new).js, changing the value for iv_load_policy from 3 to 1 by replacing

    tH.innerHTML="<iframe id=\"iF_" + vid + "\" width=\"" + tH.clientWidth + "px\" height=\"" + aHgh + "px\" src=\""+eU+"autoplay="+aP+"&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=3&hd="+hidef+qsa+"\" frameborder=\"0\" style=\"" + aSt + "\" allowfullscreen></iframe>"

    with

    tH.innerHTML="<iframe id=\"iF_" + vid + "\" width=\"" + tH.clientWidth + "px\" height=\"" + aHgh + "px\" src=\""+eU+"autoplay="+aP+"&controls=1&wmode=opaque&rel=0&egm=0&iv_load_policy=1&hd="+hidef+qsa+"\" frameborder=\"0\" style=\"" + aSt + "\" allowfullscreen></iframe>"

    hope this helps,
    frank

Reply

You must log in to post.

About this Plugin

About this Topic