Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Unified Diff: data/media/youtube.html

Issue 8764007: Adding Youtube dropped frames performance measurement for different types of videos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | functional/perf.py » ('j') | functional/perf.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | functional/perf.py » ('j') | functional/perf.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698