@x-edu/live-player 0.0.13 → 0.0.14

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.
@@ -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>
@@ -39,7 +39,7 @@
39
39
  background-color: #FF7826;
40
40
  }
41
41
 
42
- .tag1 { // 直播中
42
+ .tag1, .tag3 { // 直播中
43
43
  background-color: #1E62EC;
44
44
  padding: 0 5px;
45
45
 
@@ -19,7 +19,7 @@ const StatusEnum = [
19
19
  },
20
20
  {
21
21
  label: '直播中',
22
- value: 1
22
+ value: '1,3'
23
23
  },
24
24
  {
25
25
  label: '预告',