WordPress.org

Forums

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

  1. webfreelanceRSA
    Member
    Posted 1 year 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. Frank Goossens
    Member
    Plugin Author

    Posted 1 year 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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP YouTube Lyte
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic