<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<script>
function insertBackground() {
  var video = templateData['video_id'];
  document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')";
}
</script>
<style type="text/css">
body {
  background-color: black;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

#inner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -33px;
  margin-top: -23px;
}

#logo {
  position: absolute;
  right: 5px;
  bottom: 5px;
}

#play {
  opacity: .7;
}

#youtube {
  opacity: .7;
}
</style>
</head>
<body id="body" onLoad="insertBackground()">
<div id="logo"><img id="youtube" src="youtube.png"/></div>
<div id="inner"><img id="play" src="play.png" onclick="plugin.openYoutubeURL();"/></div>
</body>
</html>

<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
<script>
function insertBackground() {
  var video = loadTimeData.getValue("video_id");
  document.body.style.backgroundImage = "url('http://img.youtube.com/vi/" + video + "/0.jpg')";
}
</script>
<style type="text/css">
body {
  background-color: black;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}

#inner {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -33px;
  margin-top: -23px;
}

#logo {
  position: absolute;
  right: 5px;
  bottom: 5px;
}

#play {
  opacity: .7;
}

#youtube {
  opacity: .7;
}
</style>
</head>
<body id="body" onLoad="insertBackground()">
<div id="logo"><img id="youtube" src="youtube.png"/></div>
<div id="inner"><img id="play" src="play.png" onclick="plugin.openYoutubeURL();"/></div>
</body>
</html>

Fix Mobile YouTube Plugin replacement content.
Fix Mobile YouTube Plugin replacement content.

When Chrome for Android encounters a Flash based YouTube embed, it
renders a plugin replacement that redirects to the Android YoutTube
app. The HTML that describes the plugin replacement got broken in the
refactorings for crrev.com/297078

BUG=447290
TBR=arv@chromium.org

Review URL: https://codereview.chromium.org/846513002

Cr-Commit-Position: 972c6d2dc6dd5efdad1377c0d224e03eb8f276f7@{#310758}
