Advertisement
smaction

The relevant part of page.js I think

Mar 20th, 2014
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // The "main method" of this sample. Called when someone clicks "Run".
  2. function loadSideBarPlayer() {
  3.     // The video to load
  4.     var videoID = $("#playlist ul li:first-child").data("videoid");
  5.     // Lets Flash from another domain call JavaScript
  6.     var params = { allowScriptAccess: "always", allowfullscreen: "true", wmode: "transparent" };
  7.     // The element id of the Flash embed
  8.     var atts = { id: "yt-side-player" };
  9.     // All of the magic handled by SWFObject (http://code.google.com/p/swfobject/)
  10.     swfobject.embedSWF("http://www.youtube.com/v/" + videoID +
  11.                        "?version=3&enablejsapi=1&playerapiid=player1",
  12.                        "videoDiv", "250", "250", "9", null, null, params, atts);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement