-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started working on the rotate to fullscreen
- Loading branch information
Showing
5 changed files
with
214 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!doctype html> | ||
<html ⚡> | ||
<head> | ||
<meta charset="utf-8"> | ||
<title>AMP #0</title> | ||
<link rel="canonical" href="amps.html" > | ||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1"> | ||
<meta name="apple-mobile-web-app-title" content="AppTitle"> | ||
<meta name="apple-mobile-web-app-capable" content="yes"> | ||
|
||
<script async custom-element="amp-video" src="https://cdn.ampproject.org/v0/amp-video-0.1.js"></script> | ||
<link href='https://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'> | ||
<style amp-custom> | ||
body { | ||
max-width: 527px; | ||
font-family: 'Questrial', Arial; | ||
} | ||
[fallback] { | ||
display: block; | ||
/* @alternative */ display: flex; | ||
flex-direction: column; | ||
flex-wrap: nowrap; | ||
justify-content: center; | ||
align-items: center; | ||
background: rgba(0, 0, 0, 0.5); | ||
color: #fff; | ||
} | ||
.spacer { | ||
height: 100vh; | ||
} | ||
</style> | ||
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript> | ||
<script async src="https://cdn.ampproject.org/v0.js"></script> | ||
</head> | ||
<body> | ||
<h1>amp-video</h1> | ||
|
||
<amp-video | ||
id="myVideo" | ||
src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4" | ||
width="720" | ||
height="405" | ||
layout="responsive" | ||
auto-fullscreen | ||
controls> | ||
<div placeholder> | ||
This is a placeholder | ||
</div> | ||
<div fallback> | ||
This is a fallback | ||
</div> | ||
</amp-video> | ||
<h3>Actions</h3> | ||
<button on="tap:myVideo.play">Play</button> | ||
<button on="tap:myVideo.pause">Pause</button> | ||
<button on="tap:myVideo.mute">Mute</button> | ||
<button on="tap:myVideo.unmute">Unmute</button> | ||
|
||
<h2>Autoplay</h2> | ||
<amp-video | ||
autoplay | ||
auto-fullscreen | ||
src="https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerJoyrides.mp4" | ||
width="720" | ||
height="405" | ||
layout="responsive" | ||
controls> | ||
</amp-video> | ||
<div class="spacer"></div> | ||
</body> | ||
</html> |