11111
This commit is contained in:
@@ -0,0 +1,227 @@
|
||||
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([
|
||||
[7868],
|
||||
{
|
||||
53241: function (e, t, r) {
|
||||
"use strict";
|
||||
r.d(t, {
|
||||
R: function () {
|
||||
return u;
|
||||
},
|
||||
p: function () {
|
||||
return s;
|
||||
},
|
||||
});
|
||||
var n = r(72006),
|
||||
i = r(4637),
|
||||
c = r(16114),
|
||||
o = r(59496),
|
||||
a = r(4795);
|
||||
r.n(a)().a;
|
||||
var u = "55875f38623d4faa842ce78af0fbb631",
|
||||
l = {
|
||||
width: "100%",
|
||||
height: "100%",
|
||||
title: "",
|
||||
file: "",
|
||||
image: "http://cyberplayer.bcelive.com/thumbnail.jpg",
|
||||
autostart: !1,
|
||||
stretching: "uniform",
|
||||
repeat: !1,
|
||||
volume: 50,
|
||||
controls: !0,
|
||||
starttime: 0,
|
||||
ak: u,
|
||||
flv: { reconnecttime: 2 },
|
||||
},
|
||||
s = o.memo(
|
||||
function (e) {
|
||||
var t,
|
||||
r,
|
||||
a = (0, o.useState)(!1),
|
||||
u = a[0],
|
||||
s = a[1],
|
||||
d = (0, o.useRef)(null),
|
||||
p = (0, o.useRef)(null),
|
||||
f = function () {
|
||||
var t = function () {
|
||||
var t;
|
||||
(d.current =
|
||||
null ===
|
||||
(t = window.cyberplayer(
|
||||
e.playerId || "playercontainer"
|
||||
)) || void 0 === t
|
||||
? void 0
|
||||
: t.setup((0, n.Z)({}, l, e.config))),
|
||||
d.current.on("error", function (e) {
|
||||
var t;
|
||||
console.info(e),
|
||||
(null === (t = e.msg) || void 0 === t
|
||||
? void 0
|
||||
: t.details) !== "internalException" && s(!0);
|
||||
}),
|
||||
e.onload && e.onload(d.current);
|
||||
};
|
||||
window.cyberplayer
|
||||
? t()
|
||||
: window.require &&
|
||||
window.require(["cyberplayer"], function (e) {
|
||||
(window.cyberplayer = e), t();
|
||||
});
|
||||
};
|
||||
(0, c.FI)(function () {
|
||||
var t;
|
||||
e.initSdk
|
||||
? ((t = e.cyberplayerVersion),
|
||||
new Promise(function (e) {
|
||||
if (window.cyberplayer) {
|
||||
e(!0);
|
||||
return;
|
||||
}
|
||||
var r = document.createElement("script");
|
||||
"3.5.2" === t
|
||||
? (r.src =
|
||||
"https://bce.bdstatic.com/jwplayer/3.5.2/cyberplayer.js")
|
||||
: "4.4.2.1" === t
|
||||
? (r.src =
|
||||
"https://bce-cdn.bj.bcebos.com/jwplayer/4.4.2.1/cyberplayer-evs.js")
|
||||
: (r.src =
|
||||
"https://bce.bdstatic.com/portal-cloud-server/dep/cyberplayer_v4.3.2/cyberplayer.js"),
|
||||
document.head.appendChild(r),
|
||||
(r.onload = function () {
|
||||
e(!0);
|
||||
});
|
||||
})).then(function () {
|
||||
f();
|
||||
})
|
||||
: f();
|
||||
});
|
||||
var v = function (e) {
|
||||
d.current.setControls(!0),
|
||||
p.current && (clearTimeout(p.current), (p.current = null)),
|
||||
e ||
|
||||
(p.current = setTimeout(function () {
|
||||
d.current.setControls(!1);
|
||||
}, 1e3));
|
||||
},
|
||||
y = function () {
|
||||
d.current &&
|
||||
("playing" === d.current.getState() && v(!1),
|
||||
"paused" === d.current.getState() && v(!0));
|
||||
},
|
||||
b = function () {
|
||||
setTimeout(function () {
|
||||
d.current && "paused" === d.current.getState()
|
||||
? v(!0)
|
||||
: v(!1);
|
||||
});
|
||||
};
|
||||
return (0, i.jsxs)("div", {
|
||||
className: "u-cyberplayer",
|
||||
onMouseMove: y,
|
||||
onClick: b,
|
||||
children: [
|
||||
(0, i.jsx)("div", { id: e.playerId || "playercontainer" }),
|
||||
u &&
|
||||
(null == e
|
||||
? void 0
|
||||
: null === (t = e.config) || void 0 === t
|
||||
? void 0
|
||||
: t.errorTip) &&
|
||||
(0, i.jsx)("div", {
|
||||
className: "error-tips",
|
||||
children:
|
||||
null == e
|
||||
? void 0
|
||||
: null === (r = e.config) || void 0 === r
|
||||
? void 0
|
||||
: r.errorTip,
|
||||
}),
|
||||
],
|
||||
});
|
||||
},
|
||||
function (e, t) {
|
||||
return JSON.stringify(e) === JSON.stringify(t);
|
||||
}
|
||||
);
|
||||
},
|
||||
8991: function (e, t, r) {
|
||||
"use strict";
|
||||
r.r(t),
|
||||
r.d(t, {
|
||||
V5G001: function () {
|
||||
return a;
|
||||
},
|
||||
});
|
||||
var n = r(4637),
|
||||
i = r(53241),
|
||||
c = r(28317),
|
||||
o = r.n(c);
|
||||
function a(e) {
|
||||
var t = e.data,
|
||||
r = e.type,
|
||||
c = void 0 === r ? "" : r,
|
||||
a = t.render;
|
||||
return (0, n.jsxs)("section", {
|
||||
"ui-type": c,
|
||||
className: o()[c],
|
||||
children: [
|
||||
(0, n.jsx)("h2", { children: a.title }),
|
||||
(0, n.jsxs)("div", {
|
||||
className: "".concat(o().group, " v5-group-base"),
|
||||
children: [
|
||||
a.content &&
|
||||
(0, n.jsx)("pre", {
|
||||
className: o().content,
|
||||
children: (0, n.jsx)("p", { children: a.content }),
|
||||
}),
|
||||
a.image
|
||||
? (0, n.jsx)("img", { src: a.image, alt: a.title })
|
||||
: a.button &&
|
||||
!a.button.disabled &&
|
||||
(0, n.jsx)("a", {
|
||||
href: a.button.href,
|
||||
"data-track-category": a.title,
|
||||
"data-track-name": a.button.text,
|
||||
target: "_blank",
|
||||
children: (0, n.jsx)("button", {
|
||||
children: a.button.text,
|
||||
}),
|
||||
}),
|
||||
a.video &&
|
||||
(0, n.jsx)("div", {
|
||||
className: o()["video-container"],
|
||||
children: (0, n.jsx)(i.p, {
|
||||
initSdk: !0,
|
||||
config: {
|
||||
image: "",
|
||||
file: a.video,
|
||||
autostart: !1,
|
||||
isLive: !1,
|
||||
errorTip: "",
|
||||
controls: "over",
|
||||
repeat: !0,
|
||||
},
|
||||
}),
|
||||
}),
|
||||
],
|
||||
}),
|
||||
],
|
||||
});
|
||||
}
|
||||
},
|
||||
4795: function (e) {
|
||||
e.exports = { circle: "CZ1RhmKP" };
|
||||
},
|
||||
28317: function (e) {
|
||||
e.exports = {
|
||||
V5G001: "p2z_dbqV",
|
||||
group: "Zv_rDXye",
|
||||
V5G002: "DTHxn_90",
|
||||
V5G002_en: "FEGxG1NO",
|
||||
V5G003: "N3_D0y3l",
|
||||
content: "qszzYbML",
|
||||
"video-container": "fhrNT75z",
|
||||
};
|
||||
},
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user