-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a JW player video element as example (#178)
- Loading branch information
Showing
3 changed files
with
72 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta name="viewport" content="width=device-width" /> | ||
<title>Media Chrome JW Player Media Example</title> | ||
<style> | ||
.examples { | ||
margin-top: 20px; | ||
} | ||
|
||
media-loading-indicator { | ||
--media-loading-icon-width: 100px; | ||
} | ||
|
||
media-airplay-button[media-airplay-unavailable] { | ||
display: none; | ||
} | ||
|
||
media-volume-range[media-volume-unavailable] { | ||
display: none; | ||
} | ||
|
||
media-pip-button[media-pip-unavailable] { | ||
display: none; | ||
} | ||
|
||
</style> | ||
<script type="module" src="https://unpkg.com/[email protected]/dist/jwplayer-video-element.js"></script> | ||
<script type="module" src="../../dist/index.js"></script> | ||
</head> | ||
<body> | ||
<main> | ||
<h1>Media Chrome JW Player Media Example</h1> | ||
<media-controller style="aspect-ratio: 16 / 9;"> | ||
<jwplayer-video | ||
slot="media" | ||
crossorigin | ||
src="https://cdn.jwplayer.com/players/C8YE48zj-IxzuqJ4M.html" | ||
> | ||
<track | ||
label="thumbnails" | ||
default | ||
kind="metadata" | ||
src="https://assets-jpcust.jwpsrv.com/strips/C8YE48zj-120.vtt" | ||
/> | ||
</jwplayer-video> | ||
<div slot="centered-chrome" no-auto-hide> | ||
<media-loading-indicator media-loading></media-loading-indicator> | ||
</div> | ||
<media-control-bar> | ||
<media-play-button></media-play-button> | ||
<media-seek-backward-button seek-offset="15"></media-seek-backward-button> | ||
<media-seek-forward-button seek-offset="15"></media-seek-forward-button> | ||
<media-mute-button></media-mute-button> | ||
<media-volume-range></media-volume-range> | ||
<media-time-range></media-time-range> | ||
<media-time-display show-duration remaining></media-time-display> | ||
<media-captions-button default-showing></media-captions-button> | ||
<media-playback-rate-button></media-playback-rate-button> | ||
<media-pip-button></media-pip-button> | ||
<media-airplay-button></media-airplay-button> | ||
<media-fullscreen-button></media-fullscreen-button> | ||
</media-control-bar> | ||
</media-controller> | ||
</main> | ||
</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
009a6d2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: