cafe-video-player 3.0.10 → 3.0.12
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/index.js +7 -0
- package/index.js.map +1 -1
- package/index.mjs +7 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -4831,6 +4831,7 @@ var init_playerCore_actions = __esm({
|
|
|
4831
4831
|
const dispatch = store_default.dispatch;
|
|
4832
4832
|
event.preventDefault();
|
|
4833
4833
|
waitingTimerRef.current = Date.now();
|
|
4834
|
+
console.log("--- handleVideoWaiting");
|
|
4834
4835
|
dispatch(setIsLoading(true));
|
|
4835
4836
|
};
|
|
4836
4837
|
handleVideoSeeking = (event, waitingTimerRef) => {
|
|
@@ -4838,6 +4839,7 @@ var init_playerCore_actions = __esm({
|
|
|
4838
4839
|
const dispatch = store_default.dispatch;
|
|
4839
4840
|
event.preventDefault();
|
|
4840
4841
|
waitingTimerRef.current = 0;
|
|
4842
|
+
console.log("--- handleVideoSeeking");
|
|
4841
4843
|
dispatch(setIsLoading(true));
|
|
4842
4844
|
};
|
|
4843
4845
|
handleVideoPlay = (event, timerRef) => {
|
|
@@ -4911,6 +4913,7 @@ var init_playerCore_actions = __esm({
|
|
|
4911
4913
|
const video = mainPlayerVideoTag();
|
|
4912
4914
|
const dispatch = store_default.dispatch;
|
|
4913
4915
|
const { settings } = store_default.getState().user;
|
|
4916
|
+
console.log("--- handleVideoCanPlay");
|
|
4914
4917
|
dispatch(setIsLoading(false));
|
|
4915
4918
|
dispatch(setCanPlayVideo(true));
|
|
4916
4919
|
mainPlayerVideoTag().volume = settings.volume / 100;
|
|
@@ -4931,6 +4934,7 @@ var init_playerCore_actions = __esm({
|
|
|
4931
4934
|
};
|
|
4932
4935
|
handleIosVideoPlaying = () => {
|
|
4933
4936
|
const dispatch = store_default.dispatch;
|
|
4937
|
+
console.log("--- handleIosVideoPlaying");
|
|
4934
4938
|
dispatch(setIsLoading(false));
|
|
4935
4939
|
dispatch(setFirstPlay(false));
|
|
4936
4940
|
};
|
|
@@ -4973,6 +4977,7 @@ var init_playerCore_actions = __esm({
|
|
|
4973
4977
|
handleStaticVideoPlaying = (loadingDurationRef, initialWaitingDurationRef, timerRef) => {
|
|
4974
4978
|
const dispatch = store_default.dispatch;
|
|
4975
4979
|
const { firstPlay } = store_default.getState().controller;
|
|
4980
|
+
console.log("--- handleStaticVideoPlaying");
|
|
4976
4981
|
dispatch(setIsLoading(false));
|
|
4977
4982
|
if (firstPlay && !!mainPlayerVideoTag().played) {
|
|
4978
4983
|
sendFluentLog(
|
|
@@ -4993,6 +4998,7 @@ var init_playerCore_actions = __esm({
|
|
|
4993
4998
|
};
|
|
4994
4999
|
handleStaticVideoCanPlay = () => {
|
|
4995
5000
|
const dispatch = store_default.dispatch;
|
|
5001
|
+
console.log("--- handleStaticVideoCanPlay");
|
|
4996
5002
|
dispatch(setIsLoading(false));
|
|
4997
5003
|
dispatch(setCanPlayVideo(true));
|
|
4998
5004
|
};
|
|
@@ -7030,6 +7036,7 @@ var VideoPlayer = (props) => {
|
|
|
7030
7036
|
element = /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: tw("", { desktop: "pl-rounded-[12px]" }), style: { touchAction: "pan-y", userSelect: "none" }, children: conditions("isStaticFormat" /* isStaticFormat */) ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(StaticPlayer2, {}) : /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(VodPlayer2, {}) });
|
|
7031
7037
|
}
|
|
7032
7038
|
const isShowLoader = firstPlay && isLoading;
|
|
7039
|
+
console.log(firstPlay, isLoading);
|
|
7033
7040
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
7034
7041
|
"div",
|
|
7035
7042
|
{
|