@eluvio/elv-player-js 1.0.136 → 1.0.137
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.
- package/README.md +20 -12
- package/dist/Analytics-Bi5tPfDl.mjs +2028 -0
- package/dist/dash.all.min-6lnccozJ.mjs +19428 -0
- package/dist/elv-player-js.es.js +6 -0
- package/dist/elv-player-js.umd.js +227 -0
- package/dist/hls-1eCRapWm.mjs +15461 -0
- package/dist/index-ObsDfNAj.mjs +2273 -0
- package/dist/index-WOzcLuQQ.mjs +41292 -0
- package/dist/style.css +1 -0
- package/package.json +4 -3
- package/src/Analytics.js +114 -0
- package/src/PlayerControls.js +195 -24
- package/src/index.js +291 -73
- package/src/static/icons/Icons.js +11 -8
- package/src/static/icons/media/list.svg +1 -0
- package/src/static/icons/media/next.svg +1 -0
- package/src/static/icons/media/previous.svg +1 -0
- package/src/static/stylesheets/player.scss +68 -6
- package/webpack.config.js +16 -7
- package/dist/5897e28fa3e8ac0a2fae.png +0 -0
- package/dist/bundle.333.7815f5ebcb1488f0e077.js +0 -2
- package/dist/bundle.333.7815f5ebcb1488f0e077.js.LICENSE.txt +0 -1
- package/dist/bundle.542.13fbfeeb92e41067e9da.js +0 -2
- package/dist/bundle.542.13fbfeeb92e41067e9da.js.LICENSE.txt +0 -13
- package/dist/bundle.543.f78d7c10787a91d4b582.js +0 -2
- package/dist/bundle.543.f78d7c10787a91d4b582.js.LICENSE.txt +0 -1
- package/dist/bundle.552.fbfc2e2fc68f6287f12c.js +0 -1
- package/dist/bundle.688.ef6032af9f304acb167f.js +0 -1
- package/dist/bundle.978.40fe2f1d0a843e187793.js +0 -1
- package/dist/index.js +0 -2
- package/dist/index.js.LICENSE.txt +0 -64
package/README.md
CHANGED
|
@@ -96,6 +96,7 @@ The library includes a helpful collection of configuration options in `EluvioPla
|
|
|
96
96
|
### Player Options
|
|
97
97
|
|
|
98
98
|
```javascript
|
|
99
|
+
// All player options and their defaults
|
|
99
100
|
playerOptions: {
|
|
100
101
|
controls: EluvioPlayerParameters.controls.AUTO_HIDE,
|
|
101
102
|
autoplay: EluvioPlayerParameters.autoplay.OFF,
|
|
@@ -103,11 +104,13 @@ The library includes a helpful collection of configuration options in `EluvioPla
|
|
|
103
104
|
loop: EluvioPlayerParameters.loop.OFF,
|
|
104
105
|
watermark: EluvioPlayerParameters.watermark.ON,
|
|
105
106
|
capLevelToPlayerSize: EluvioPlayerParameters.capLevelToPlayerSize.OFF,
|
|
107
|
+
collectVideoAnalytics: EluvioPlayerParameters.collectVideoAnalytics.ON,
|
|
106
108
|
posterUrl: undefined,
|
|
107
109
|
className: undefined,
|
|
108
110
|
controlsClassName: undefined,
|
|
109
111
|
hlsjsOptions: undefined,
|
|
110
112
|
dashjsOptions: undefined,
|
|
113
|
+
maxBitrate: undefined,
|
|
111
114
|
playerCallback: ({player, videoElement, hlsPlayer, dashPlayer, posterUrl}) => {},
|
|
112
115
|
errorCallback: (error, player) => {},
|
|
113
116
|
restartCallback: async (error) => {}
|
|
@@ -115,30 +118,35 @@ The library includes a helpful collection of configuration options in `EluvioPla
|
|
|
115
118
|
```
|
|
116
119
|
|
|
117
120
|
##### Values
|
|
118
|
-
* `controls` - How the controls should be displayed
|
|
121
|
+
* `controls` - How the controls should be displayed
|
|
122
|
+
* `AUTOHIDE (default)`: Player controls will be shown. Will automatically hide when not in use
|
|
119
123
|
* `ON`: Player controls will be shown
|
|
120
|
-
* `AUTOHIDE`: Player controls will be shown. Will automatically hide when not in use
|
|
121
124
|
* `DEFAULT`: Default HTML video controls will be shown
|
|
122
125
|
* `OFF`: No controls will be shown
|
|
123
126
|
* `OFF_WITH_VOLUME_TOGGLE`: No controls will be shown except a volume on/off toggle
|
|
124
|
-
* `autoplay` - Whether or not the video should autoplay.
|
|
127
|
+
* `autoplay` - Whether or not the video should autoplay. NOTE: Browsers may block autoplay video with audio
|
|
128
|
+
* `OFF (default)`: Video will not autoplay
|
|
125
129
|
* `ON`: Video will autoplay
|
|
126
|
-
* `OFF`: Video will not autoplay
|
|
127
130
|
* `WHEN_VISIBLE`: Video will autoplay only when the video element is visible, and will stop when the element is no longer visible
|
|
128
|
-
* `muted` - Whether or not the video will be muted.
|
|
131
|
+
* `muted` - Whether or not the video will be muted.
|
|
132
|
+
* `OFF (default)`: Video will not be muted
|
|
129
133
|
* `ON`: Video will be muted
|
|
130
|
-
* `OFF`: Video will not be muted
|
|
131
134
|
* `WHEN_NOT_VISIBLE`: Video will be muted when the video element is not visible
|
|
132
135
|
* `OFF_IF_POSSIBLE`: Video will not be muted unless playback is blocked due to audio (useful for autoplay)
|
|
133
|
-
* `loop` - Whether or not the video will loop.
|
|
136
|
+
* `loop` - Whether or not the video will loop.
|
|
137
|
+
* `OFF (default)` - Video will not loop
|
|
134
138
|
* `ON` - Video will loop
|
|
135
|
-
|
|
136
|
-
* `
|
|
137
|
-
* `ON` - Watermark will be shown
|
|
139
|
+
* `watermark`: Whether or not the Eluvio watermark will be shown.
|
|
140
|
+
* `ON (default)` - Watermark will be shown
|
|
138
141
|
* `OFF` - Watermark will not be shown
|
|
139
|
-
* `capLevelToPlayerSize`: Whether or not the playback quality should be limited by the size of the video element. Useful for reducing bandwidth usage for smaller video elements where a higher quality would not be beneficial.
|
|
142
|
+
* `capLevelToPlayerSize`: Whether or not the playback quality should be limited by the size of the video element. Useful for reducing bandwidth usage for smaller video elements where a higher quality would not be beneficial.
|
|
143
|
+
* `OFF (default)` - Playback quality will not be affected by the size of the video element (default)
|
|
140
144
|
* `ON` - Playback quality will be limited by the size of the video element
|
|
141
|
-
|
|
145
|
+
* `collectVideoAnalytics` - By default, the player will collect anonymized playback analytics to help improve the performance of the Eluvio Content Fabric.
|
|
146
|
+
* `ON (default)` - Player performance analytics will be collected
|
|
147
|
+
* `DISABLE_COOKIES`- Player performance analytics will be collected, but browser cookies will not be used
|
|
148
|
+
* `OFF` - Player performance analytics will not be collected
|
|
149
|
+
* `maxBitrate` - Maximum bitrate that the player will automatically use, in bits/second.
|
|
142
150
|
* `posterUrl` - Specify a URL for the poster image for the player
|
|
143
151
|
* `className` - HTML class to be added to the player
|
|
144
152
|
* `controlsClassName` - HTML class to be added to the player controls container
|