saltfish 0.2.0 → 0.2.1
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.
|
@@ -913,7 +913,7 @@ const playerStateMachineConfig = {
|
|
|
913
913
|
"MINIMIZE": { target: "minimized" }
|
|
914
914
|
},
|
|
915
915
|
entry: ["logStateEntry", "startMutedLoopedVideo", "hideVideoControls", "showPlayButton", "enablePlayButtonProminent"],
|
|
916
|
-
exit: ["disablePlayButtonProminent"]
|
|
916
|
+
exit: ["disablePlayButtonProminent", "showVideoControls"]
|
|
917
917
|
},
|
|
918
918
|
"idleMode": {
|
|
919
919
|
on: {
|
|
@@ -922,7 +922,7 @@ const playerStateMachineConfig = {
|
|
|
922
922
|
"MINIMIZE": { target: "minimized" }
|
|
923
923
|
},
|
|
924
924
|
entry: ["logStateEntry", "startIdleModeVideo", "hideVideoControls", "showPlayButton", "enablePlayButtonProminent"],
|
|
925
|
-
exit: ["disablePlayButtonProminent"]
|
|
925
|
+
exit: ["disablePlayButtonProminent", "showVideoControls"]
|
|
926
926
|
},
|
|
927
927
|
"error": {
|
|
928
928
|
on: {
|
|
@@ -5221,9 +5221,6 @@ class VideoManager {
|
|
|
5221
5221
|
activeVideo.style.filter = "";
|
|
5222
5222
|
activeVideo.style.transition = "";
|
|
5223
5223
|
}
|
|
5224
|
-
if (!activeVideo.paused) {
|
|
5225
|
-
return;
|
|
5226
|
-
}
|
|
5227
5224
|
if (activeVideo.ended) {
|
|
5228
5225
|
activeVideo.currentTime = 0;
|
|
5229
5226
|
}
|
|
@@ -5235,27 +5232,19 @@ class VideoManager {
|
|
|
5235
5232
|
activeVideo.currentTime = savedPosition;
|
|
5236
5233
|
}
|
|
5237
5234
|
}
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
if (comingFromAutoplayFallback || comingFromIdleMode) {
|
|
5241
|
-
activeVideo.currentTime = 0;
|
|
5242
|
-
activeVideo.loop = false;
|
|
5243
|
-
this.setMuted(false);
|
|
5235
|
+
activeVideo.loop = false;
|
|
5236
|
+
if (!activeVideo.paused) {
|
|
5244
5237
|
if (this.controls) {
|
|
5245
|
-
this.controls.showProgressBar();
|
|
5246
|
-
this.controls.showMuteButton();
|
|
5247
5238
|
this.controls.startProgressTracking();
|
|
5248
5239
|
}
|
|
5249
|
-
|
|
5250
|
-
if (!comingFromAutoplayFallback && this.controls) {
|
|
5251
|
-
this.controls.showProgressBar();
|
|
5240
|
+
return;
|
|
5252
5241
|
}
|
|
5253
5242
|
this.deviceHandler.handlePlayAttempt(activeVideo, this.hasUserInteracted).then((playSucceeded) => {
|
|
5254
5243
|
if (!activeVideo) {
|
|
5255
5244
|
return;
|
|
5256
5245
|
}
|
|
5257
5246
|
if (playSucceeded) {
|
|
5258
|
-
if (
|
|
5247
|
+
if (this.controls) {
|
|
5259
5248
|
this.controls.startProgressTracking();
|
|
5260
5249
|
}
|
|
5261
5250
|
} else {
|