-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example PLUS HACK IN ADTAGURL IN PLAYER TEMPLATE.
- Loading branch information
1 parent
6af05ad
commit 86c803e
Showing
2 changed files
with
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title><mux-player> renditions example</title> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/water.css@2/out/water.css" /> | ||
<link rel="stylesheet" href="./styles.css" /> | ||
<script type="module" src="./dist/mux-player.js"></script> | ||
<script type="text/javascript" src="https://imasdk.googleapis.com/js/sdkloader/ima3.js"></script> | ||
<style> | ||
mux-player { | ||
display: block; | ||
width: 100%; | ||
margin: 1rem 0 2rem; | ||
background-color: #000; | ||
} | ||
|
||
mux-player:not([audio]) { | ||
aspect-ratio: 16 / 9; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header> | ||
<div class="left-header"> | ||
<a class="mux-logo" href="https://www.mux.com/player" target="_blank"> | ||
<picture> | ||
<source | ||
media="(prefers-color-scheme: dark)" | ||
srcset=" | ||
https://user-images.githubusercontent.com/360826/233653989-11cd8603-c20f-4008-8bf7-dc15b743c52b.svg | ||
" | ||
/> | ||
<source | ||
media="(prefers-color-scheme: light)" | ||
srcset=" | ||
https://user-images.githubusercontent.com/360826/233653583-50dda726-cbe7-4182-a113-059a91ae83e6.svg | ||
" | ||
/> | ||
<img | ||
alt="Mux Logo" | ||
src="https://user-images.githubusercontent.com/360826/233653583-50dda726-cbe7-4182-a113-059a91ae83e6.svg" | ||
/> | ||
</picture> | ||
</a> | ||
<h1><a href="/">Elements</a></h1> | ||
</div> | ||
<div class="right-header"> | ||
<a class="github-logo" href="https://github.com/muxinc/elements" target="_blank"> | ||
<img width="32" height="32" src="./images/github-logo.svg" alt="Github logo" /> | ||
</a> | ||
</div> | ||
</header> | ||
|
||
<mux-player | ||
id="muxPlayer" | ||
title="Big Buck Bunny" | ||
stream-type="on-demand" | ||
playback-id="VcmKA6aqzIzlg3MayLJDnbF55kX00mds028Z65QxvBYaA" | ||
></mux-player> | ||
|
||
<a href="../">Browse Elements</a> | ||
</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