-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(auto-pause): adds autopause attribute for pausing videos off of …
…screen (#112)
- Loading branch information
1 parent
3deee62
commit 316b2b9
Showing
3 changed files
with
94 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<meta | ||
name="viewport" | ||
content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes" | ||
/> | ||
<title>lite-youtube demo</title> | ||
<script type="module" src="../lite-youtube.js"></script> | ||
|
||
<style> | ||
* { | ||
box-sizing: content-box; | ||
} | ||
body { | ||
max-width: 800px; | ||
margin: auto; | ||
} | ||
pre { | ||
width: 100%; | ||
padding: 1em; | ||
overflow-x: scroll; | ||
background-clip: z; | ||
background-color: #eee; | ||
} | ||
.styleIt { | ||
width: 400px; | ||
} | ||
#bigBlock { | ||
height: 600px; | ||
} | ||
#noShadow { | ||
--lite-youtube-frame-shadow-visible: no; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<pre> | ||
<style> lite-youtube { --lite-youtube-frame-shadow-visible: no; } </style> | ||
<lite-youtube videoid="guJLfqTFfIw"</lite-youtube> | ||
</pre> | ||
<lite-youtube id="noShadow" videoid="VLrYOji75Vc" autopause></lite-youtube> | ||
<div style="height: 400vh"></div> | ||
</body> | ||
</html> |
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