Chromium Code Reviews| Index: data/media/youtube.html |
| =================================================================== |
| --- data/media/youtube.html (revision 112101) |
| +++ data/media/youtube.html (working copy) |
| @@ -14,8 +14,11 @@ |
| function loadPlayer() { |
| var params = { allowScriptAccess: "always" }; |
| var atts = { id: "myytplayer" }; |
| + var url = window.location.href; |
| + var video_id = url.split("video="); |
|
dennis_jeffrey
2011/12/01 02:44:56
nit: we could combine the above 2 lines to get rid
rohitbm
2011/12/03 02:20:58
Done.
|
| swfobject.embedSWF( |
| - "http://www.youtube.com/e/zuzaxlddWbk?enablejsapi=1&playerapiid=ytplayer", |
| + "http://www.youtube.com/e/" + video_id[1] + |
| + "?enablejsapi=1&playerapiid=ytplayer", |
| "ytapiplayer", "800", "600", "8", null, null, params, atts); |
| } |
| </script> |