Showing
2 changed files
with
7 additions
and
0 deletions
@@ -179,6 +179,7 @@ const fetchLiveInfo = (roomID) => { | @@ -179,6 +179,7 @@ const fetchLiveInfo = (roomID) => { | ||
179 | d.master_pic = helpers.image(d.master_pic, 180, 180); | 179 | d.master_pic = helpers.image(d.master_pic, 180, 180); |
180 | d.humanTime = _formatTime(d.starting_time * 1000); // 预告 开始时间 | 180 | d.humanTime = _formatTime(d.starting_time * 1000); // 预告 开始时间 |
181 | d.video_src = d.hls_downstream_address; | 181 | d.video_src = d.hls_downstream_address; |
182 | + d.audience_num = false; // 直播 观众人数 由弹幕获取 | ||
182 | 183 | ||
183 | // 自定义数据 | 184 | // 自定义数据 |
184 | d.duration = _getHumanDuration(d.live_last_time); | 185 | d.duration = _getHumanDuration(d.live_last_time); |
@@ -48,11 +48,17 @@ | @@ -48,11 +48,17 @@ | ||
48 | {{/if}} | 48 | {{/if}} |
49 | </div> | 49 | </div> |
50 | <div class="live-num"> | 50 | <div class="live-num"> |
51 | + {{#if isRelay}} | ||
51 | <span>{{audience_num}}人观看</span> | 52 | <span>{{audience_num}}人观看</span> |
53 | + {{else}} | ||
54 | + <span></span> | ||
55 | + {{/if}} | ||
52 | </div> | 56 | </div> |
53 | </div> | 57 | </div> |
54 | <div class="title hide" id="live-watermark"> | 58 | <div class="title hide" id="live-watermark"> |
59 | + {{#if watemark }} | ||
55 | <span>{{watermark}}</span> | 60 | <span>{{watermark}}</span> |
61 | + {{/if}} | ||
56 | </div> | 62 | </div> |
57 | </div> | 63 | </div> |
58 | 64 |
-
Please register or login to post a comment