@eluvio/elv-player-js 1.0.133 → 1.0.134
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/package.json +1 -1
- package/src/index.js +3 -13
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -125,6 +125,7 @@ const DefaultParameters = {
|
|
|
125
125
|
playerProfile: EluvioPlayerParameters.playerProfile.DEFAULT,
|
|
126
126
|
hlsjsOptions: undefined,
|
|
127
127
|
dashjsOptions: undefined,
|
|
128
|
+
debugLogging: false,
|
|
128
129
|
// eslint-disable-next-line no-unused-vars
|
|
129
130
|
playerCallback: ({player, videoElement, hlsPlayer, dashPlayer, posterUrl}) => {},
|
|
130
131
|
// eslint-disable-next-line no-unused-vars
|
|
@@ -160,7 +161,6 @@ const PlayerProfiles = {
|
|
|
160
161
|
|
|
161
162
|
export class EluvioPlayer {
|
|
162
163
|
constructor(target, parameters) {
|
|
163
|
-
this.warnings = false;
|
|
164
164
|
this.reloads = [];
|
|
165
165
|
|
|
166
166
|
try {
|
|
@@ -187,9 +187,9 @@ export class EluvioPlayer {
|
|
|
187
187
|
// eslint-disable-next-line no-console
|
|
188
188
|
console.error("ELUVIO PLAYER:", message);
|
|
189
189
|
} else {
|
|
190
|
-
if(this.
|
|
190
|
+
if(this.playerOptions.debugLogging) {
|
|
191
191
|
// eslint-disable-next-line no-console
|
|
192
|
-
|
|
192
|
+
console.warn("ELUVIO PLAYER:", message);
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
}
|
|
@@ -974,16 +974,6 @@ export class EluvioPlayer {
|
|
|
974
974
|
this.Log(`Encountered ${error.details}`);
|
|
975
975
|
this.Log(error);
|
|
976
976
|
|
|
977
|
-
/*
|
|
978
|
-
if(error.details === "bufferFullError") {
|
|
979
|
-
this.bufferFullRestartTimeout = setTimeout(() => {
|
|
980
|
-
this.Log("Buffer full error - Restarting player", true);
|
|
981
|
-
this.HardReload(error, 5000);
|
|
982
|
-
}, 3000);
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
*/
|
|
986
|
-
|
|
987
977
|
if(error.details === "bufferStalledError") {
|
|
988
978
|
const stallTime = this.video.currentTime;
|
|
989
979
|
|