shaka-video-element 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +2 -2
  2. package/index.html +40 -0
  3. package/package.json +3 -2
package/README.md CHANGED
@@ -9,7 +9,7 @@ The element API matches the HTML5 `<video>` tag, so it can be easily swapped wit
9
9
  ```html
10
10
  <html>
11
11
  <head>
12
- <script type="module" src="https://unpkg.com/shaka-video-element@0.0"></script>
12
+ <script type="module" src="https://unpkg.com/shaka-video-element@0.4"></script>
13
13
  </head>
14
14
  <body>
15
15
 
@@ -31,7 +31,7 @@ Note the `type="module"`, that's important.
31
31
 
32
32
  ```html
33
33
  <head>
34
- <script type="module" src="https://unpkg.com/shaka-video-element@0.0"></script>
34
+ <script type="module" src="https://unpkg.com/shaka-video-element@0.4"></script>
35
35
  </head>
36
36
  ```
37
37
 
package/index.html ADDED
@@ -0,0 +1,40 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" dir="ltr">
3
+ <head>
4
+ <title>Shaka [Player] Video Element</title>
5
+ <script type="module" src="https://unpkg.com/media-chrome@0.7"></script>
6
+ <script type="module" src="./dist/shaka-video-element.js"></script>
7
+
8
+ <style>
9
+ media-controller {
10
+ width: 640px;
11
+ height: 360px;
12
+ }
13
+ </style>
14
+ </head>
15
+ <body>
16
+
17
+ <!-- Using media chrome for controls -->
18
+ <media-controller>
19
+ <!-- alt src https://stream.mux.com/DS00Spx1CV902MCtPj5WknGlR102V5HFkDe.m3u8 -->
20
+
21
+ <shaka-video
22
+ slot="media"
23
+ src="https://storage.googleapis.com/shaka-demo-assets/bbb-dark-truths-hls/hls.m3u8"
24
+ >
25
+
26
+ <track label="thumbnails" id="customTrack" default kind="metadata" src="https://image.mux.com/DS00Spx1CV902MCtPj5WknGlR102V5HFkDe/storyboard.vtt"></track>
27
+ </shaka-video>
28
+ <media-control-bar>
29
+ <media-play-button></media-play-button>
30
+ <media-mute-button></media-mute-button>
31
+ <media-volume-range></media-volume-range>
32
+ <media-time-range></media-time-range>
33
+ <media-pip-button></media-pip-button>
34
+ <media-fullscreen-button></media-fullscreen-button>
35
+ </media-control-bar>
36
+ </media-controller>
37
+
38
+ <p><a href="https://github.com/muxinc/shaka-video-element">github.com/muxinc/shaka-video-element</a></p>
39
+ </body>
40
+ </html>
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "shaka-video-element",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Custom element (web component) for Shaka Player",
5
5
  "type": "module",
6
6
  "main": "dist/shaka-video-element.js",
7
7
  "files": [
8
8
  "./dist/*",
9
- "README.md"
9
+ "README.md",
10
+ "index.html"
10
11
  ],
11
12
  "scripts": {
12
13
  "build": "rm -rf dist && rollup --config",