@x-edu/live-player 0.0.5 → 0.0.7
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/dist/XEduLivePlayer.common.js +392 -421
- package/dist/XEduLivePlayerPre.common.js +15 -8
- package/dist/img/empty.f5848cfc.png +0 -0
- package/doc/develop.md +18 -1
- package/package.json +1 -1
- package/src/component/Empty/index.jsx +1 -3
- package/src/detail/index.jsx +6 -6
- package/src/index.js +3 -1
|
@@ -9500,6 +9500,14 @@ module.exports = __webpack_require__.p + "img/reload.3cf8ef22.png?x-bce-process=
|
|
|
9500
9500
|
|
|
9501
9501
|
/***/ }),
|
|
9502
9502
|
|
|
9503
|
+
/***/ 7943:
|
|
9504
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
|
+
|
|
9506
|
+
"use strict";
|
|
9507
|
+
module.exports = __webpack_require__.p + "img/empty.f5848cfc.png";
|
|
9508
|
+
|
|
9509
|
+
/***/ }),
|
|
9510
|
+
|
|
9503
9511
|
/***/ 6996:
|
|
9504
9512
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
9505
9513
|
|
|
@@ -12572,7 +12580,6 @@ var index_module_update = injectStylesIntoStyleTag_default()(index_module/* defa
|
|
|
12572
12580
|
|
|
12573
12581
|
|
|
12574
12582
|
|
|
12575
|
-
var emptyImg = '@/component/Empty/img/empty.png';
|
|
12576
12583
|
function Empty_Empty(_ref) {
|
|
12577
12584
|
var _ref$hideBack = _ref.hideBack,
|
|
12578
12585
|
hideBack = _ref$hideBack === void 0 ? false : _ref$hideBack,
|
|
@@ -12589,7 +12596,7 @@ function Empty_Empty(_ref) {
|
|
|
12589
12596
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("div", {
|
|
12590
12597
|
className: classnames_default()(Empty_index_module["empty-wrap"], className)
|
|
12591
12598
|
}, /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("img", {
|
|
12592
|
-
src:
|
|
12599
|
+
src: __webpack_require__(7943),
|
|
12593
12600
|
alt: ""
|
|
12594
12601
|
}), /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("p", null, tip), description, !hideBack && (buttonRender || /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement("a", {
|
|
12595
12602
|
className: Empty_index_module["go-other"],
|
|
@@ -37914,7 +37921,7 @@ function detail_arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
37914
37921
|
|
|
37915
37922
|
|
|
37916
37923
|
|
|
37917
|
-
var TrackPageName = '
|
|
37924
|
+
var TrackPageName = 'edu_Platform_publiclive_detail_page';
|
|
37918
37925
|
function PublicLiveDetail(_ref) {
|
|
37919
37926
|
var containerClassName = _ref.containerClassName,
|
|
37920
37927
|
className = _ref.className,
|
|
@@ -38240,7 +38247,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38240
38247
|
if (loginStatus !== LOGIN_STATUS.WAIT && liveInfo) {
|
|
38241
38248
|
onSendSensors({
|
|
38242
38249
|
pageName: TrackPageName,
|
|
38243
|
-
eventName: '
|
|
38250
|
+
eventName: 'edu_Platform_publiclive_detail_page',
|
|
38244
38251
|
params: {
|
|
38245
38252
|
publiclive_id: liveInfo.live_id,
|
|
38246
38253
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38255,7 +38262,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38255
38262
|
if (!isExist) {
|
|
38256
38263
|
return /*#__PURE__*/external_commonjs_react_commonjs2_react_root_React_default().createElement(Empty_Empty, {
|
|
38257
38264
|
hideBack: true,
|
|
38258
|
-
tip: "\
|
|
38265
|
+
tip: "\u5185\u5BB9\u5DF2\u5931\u6548",
|
|
38259
38266
|
className: src_detail_index_module["live-empty"]
|
|
38260
38267
|
});
|
|
38261
38268
|
}
|
|
@@ -38271,7 +38278,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38271
38278
|
if (needReport) {
|
|
38272
38279
|
onSendSensors({
|
|
38273
38280
|
pageName: TrackPageName,
|
|
38274
|
-
eventName: '
|
|
38281
|
+
eventName: 'edu_Platform_publiclive_detail_replay_click',
|
|
38275
38282
|
params: {
|
|
38276
38283
|
publiclive_id: liveInfo.live_id,
|
|
38277
38284
|
publiclive_name: liveInfo.live_name,
|
|
@@ -38287,7 +38294,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38287
38294
|
var handleRequestFullScreen = function handleRequestFullScreen() {
|
|
38288
38295
|
onSendSensors({
|
|
38289
38296
|
pageName: TrackPageName,
|
|
38290
|
-
eventName: '
|
|
38297
|
+
eventName: 'edu_Platform_publiclive_detail_fullscreen_click'
|
|
38291
38298
|
});
|
|
38292
38299
|
};
|
|
38293
38300
|
|
|
@@ -38295,7 +38302,7 @@ function PublicLiveDetail(_ref) {
|
|
|
38295
38302
|
if (needReport) {
|
|
38296
38303
|
onSendSensors({
|
|
38297
38304
|
pageName: TrackPageName,
|
|
38298
|
-
eventName: '
|
|
38305
|
+
eventName: 'edu_Platform_publiclive_detail_play_click',
|
|
38299
38306
|
params: {
|
|
38300
38307
|
publiclive_id: liveInfo.live_id,
|
|
38301
38308
|
publiclive_name: liveInfo.live_name,
|
|
Binary file
|
package/doc/develop.md
CHANGED
|
@@ -2,6 +2,23 @@
|
|
|
2
2
|
|
|
3
3
|
## 发布
|
|
4
4
|
|
|
5
|
+
发布到 npm 官方 registry 上,注意不要发到 npm.sdp.nd 上
|
|
6
|
+
|
|
5
7
|
```bash
|
|
8
|
+
npm publish
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
发布后需要同步版本,依次访问如下地址,进行同步
|
|
12
|
+
|
|
13
|
+
- https://npmmirror.com/sync/@x-edu/live-player
|
|
14
|
+
- http://npm.sdp.nd/sync/@x-edu/live-player
|
|
15
|
+
|
|
16
|
+
访问 https://npmmirror.com/package/%40x-edu%2Flive-player 查看版本是否正确
|
|
17
|
+
|
|
18
|
+
## 开发
|
|
19
|
+
|
|
20
|
+
代码都是由 x-edu-web 项目下的 `src\page\publicLive\detail`
|
|
21
|
+
|
|
22
|
+
直播相关逻辑代码因为是复用公开直播的,不要轻易更改,只更改强师方面外围接入的的需求
|
|
6
23
|
|
|
7
|
-
|
|
24
|
+
对接人:孙仙钟
|
package/package.json
CHANGED
|
@@ -3,8 +3,6 @@ import classNames from 'classnames'
|
|
|
3
3
|
|
|
4
4
|
import style from './index.module.less'
|
|
5
5
|
|
|
6
|
-
const emptyImg = '@/component/Empty/img/empty.png'
|
|
7
|
-
|
|
8
6
|
export default function Empty({
|
|
9
7
|
hideBack = false,
|
|
10
8
|
tip = '哎呀,该内容被下架了',
|
|
@@ -18,7 +16,7 @@ export default function Empty({
|
|
|
18
16
|
|
|
19
17
|
return (
|
|
20
18
|
<div className={classNames(style['empty-wrap'], className)}>
|
|
21
|
-
<img src={
|
|
19
|
+
<img src={require('./img/empty.png')} alt="" />
|
|
22
20
|
<p>{tip}</p>
|
|
23
21
|
{description}
|
|
24
22
|
{!hideBack && (buttonRender
|
package/src/detail/index.jsx
CHANGED
|
@@ -32,7 +32,7 @@ import { ShortUrlMap } from './const'
|
|
|
32
32
|
import { setUC } from '@/util/auth/func'
|
|
33
33
|
import config from '@/config/env'
|
|
34
34
|
|
|
35
|
-
const TrackPageName = '
|
|
35
|
+
const TrackPageName = 'edu_Platform_publiclive_detail_page'
|
|
36
36
|
|
|
37
37
|
export default function PublicLiveDetail({
|
|
38
38
|
containerClassName,
|
|
@@ -242,7 +242,7 @@ export default function PublicLiveDetail({
|
|
|
242
242
|
if (loginStatus !== LOGIN_STATUS.WAIT && liveInfo) {
|
|
243
243
|
onSendSensors({
|
|
244
244
|
pageName: TrackPageName,
|
|
245
|
-
eventName: '
|
|
245
|
+
eventName: 'edu_Platform_publiclive_detail_page',
|
|
246
246
|
params: {
|
|
247
247
|
publiclive_id: liveInfo.live_id,
|
|
248
248
|
publiclive_name: liveInfo.live_name,
|
|
@@ -258,7 +258,7 @@ export default function PublicLiveDetail({
|
|
|
258
258
|
|
|
259
259
|
if (!isExist) {
|
|
260
260
|
return (
|
|
261
|
-
<Empty hideBack tip="
|
|
261
|
+
<Empty hideBack tip="内容已失效" className={style['live-empty']} />
|
|
262
262
|
)
|
|
263
263
|
}
|
|
264
264
|
|
|
@@ -273,7 +273,7 @@ export default function PublicLiveDetail({
|
|
|
273
273
|
if (needReport) {
|
|
274
274
|
onSendSensors({
|
|
275
275
|
pageName: TrackPageName,
|
|
276
|
-
eventName: '
|
|
276
|
+
eventName: 'edu_Platform_publiclive_detail_replay_click',
|
|
277
277
|
params: {
|
|
278
278
|
publiclive_id: liveInfo.live_id,
|
|
279
279
|
publiclive_name: liveInfo.live_name,
|
|
@@ -289,7 +289,7 @@ export default function PublicLiveDetail({
|
|
|
289
289
|
const handleRequestFullScreen = () => {
|
|
290
290
|
onSendSensors({
|
|
291
291
|
pageName: TrackPageName,
|
|
292
|
-
eventName: '
|
|
292
|
+
eventName: 'edu_Platform_publiclive_detail_fullscreen_click'
|
|
293
293
|
})
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -297,7 +297,7 @@ export default function PublicLiveDetail({
|
|
|
297
297
|
if (needReport) {
|
|
298
298
|
onSendSensors({
|
|
299
299
|
pageName: TrackPageName,
|
|
300
|
-
eventName: '
|
|
300
|
+
eventName: 'edu_Platform_publiclive_detail_play_click',
|
|
301
301
|
params: {
|
|
302
302
|
publiclive_id: liveInfo.live_id,
|
|
303
303
|
publiclive_name: liveInfo.live_name,
|