@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 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. Default AUTOHIDE
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. Default OFF. NOTE: Browsers may block autoplay video with audio
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. Default OFF
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. Default OFF
136
+ * `loop` - Whether or not the video will loop.
137
+ * `OFF (default)` - Video will not loop
134
138
  * `ON` - Video will loop
135
- * `OFF` - Video will not loop
136
- * `watermark`: Whether or not the Eluvio watermark will be shown. Default ON
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. Default OFF
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
- * `OFF` - Playback quality will not be affected by the size of the video element
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