@x-edu/live-player 0.0.13 → 0.0.15
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 +232 -229
- package/dist/XEduLivePlayerPre.common.js +528 -886
- package/package.json +1 -1
- package/src/demo/List.jsx +16 -14
- package/src/detail/LiveStatus/index.jsx +186 -186
- package/src/detail/index.jsx +501 -501
- package/src/list/ListItem/Action/index.jsx +1 -1
- package/src/list/ListItem/index.jsx +3 -2
- package/src/list/ListItem/index.module.less +1 -1
- package/src/list/index.jsx +1 -1
|
@@ -23,7 +23,7 @@ export default function Action({
|
|
|
23
23
|
const { status, live_id: liveId, begin_time: beginTime } = data
|
|
24
24
|
const [curAction, setCurAction] = useState(() => {
|
|
25
25
|
let actionNum
|
|
26
|
-
if (status === 1) {
|
|
26
|
+
if (status === 1 || status === 3) {
|
|
27
27
|
actionNum = 1
|
|
28
28
|
} else if (status === 2) {
|
|
29
29
|
actionNum = 2
|
|
@@ -11,7 +11,8 @@ import style from './index.module.less'
|
|
|
11
11
|
const TagName = {
|
|
12
12
|
0: '预告',
|
|
13
13
|
1: '直播中',
|
|
14
|
-
2: '回放'
|
|
14
|
+
2: '回放',
|
|
15
|
+
3: '直播中' // 实际是暂停
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
export default function ListItem({
|
|
@@ -56,7 +57,7 @@ export default function ListItem({
|
|
|
56
57
|
className={style.avatar}
|
|
57
58
|
/>
|
|
58
59
|
<div className={classNames(style.tag, style[`tag${status}`])}>
|
|
59
|
-
{status === 1 ? <img src={PlayImg} alt="" /> : null}
|
|
60
|
+
{status === 1 || status === 3 ? <img src={PlayImg} alt="" /> : null}
|
|
60
61
|
{TagName[status]}
|
|
61
62
|
</div>
|
|
62
63
|
</div>
|