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

Unified Diff: data/media/youtube_StarTrek.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
Index: data/media/youtube_StarTrek.html
===================================================================
--- data/media/youtube_StarTrek.html (revision 0)
+++ data/media/youtube_StarTrek.html (revision 0)
@@ -0,0 +1,27 @@
+<!-- This is a test html file for Youtube video tests -->
+<html>
+<script type="text/javascript" src="swfobject.js"></script>
+<div id="ytapiplayer">
+You need Flash player 8+ and JavaScript enabled to view this video.
+</div>
+
+<script type="text/javascript">
+function onYouTubePlayerReady(playerId) {
+ ytplayer = document.getElementById("myytplayer");
+ console.log("player ready to play");
+ document.getElementById('player_status').innerHTML = 'player ready';
+}
+function loadPlayer() {
+ var params = { allowScriptAccess: "always" };
+ var atts = { id: "myytplayer" };
+ swfobject.embedSWF(
+ "http://www.youtube.com/e/8ETDE0VGJY4?enablejsapi=1&playerapiid=ytplayer",
+ "ytapiplayer", "800", "600", "8", null, null, params, atts);
+}
+</script>
+
+<body onload="loadPlayer()">
+<div id=player_status>Not Ready</div>
+Youtube flash test</body>
+
+</html>

Powered by Google App Engine
This is Rietveld 408576698