Commit 6e4d9d9749fa7edc8956c047317ee8e6b912e1c1
Committed by
GitHub
Merge pull request #711 from Lyon1994/patch-1
[ fix bug ] 修复分屏播放无效的问题,这是一个json解析错误
Showing
1 changed file
with
2 additions
and
2 deletions
web_src/src/components/live.vue
| @@ -140,9 +140,9 @@ export default { | @@ -140,9 +140,9 @@ export default { | ||
| 140 | if (res.data.code === 0 && res.data.data) { | 140 | if (res.data.code === 0 && res.data.data) { |
| 141 | let videoUrl; | 141 | let videoUrl; |
| 142 | if (location.protocol === "https:") { | 142 | if (location.protocol === "https:") { |
| 143 | - videoUrl = res.data.data.wss_flv.url; | 143 | + videoUrl = res.data.data.wss_flv; |
| 144 | } else { | 144 | } else { |
| 145 | - videoUrl = res.data.data.ws_flv.url; | 145 | + videoUrl = res.data.data.ws_flv; |
| 146 | } | 146 | } |
| 147 | itemData.playUrl = videoUrl; | 147 | itemData.playUrl = videoUrl; |
| 148 | that.setPlayUrl(videoUrl, idxTmp); | 148 | that.setPlayUrl(videoUrl, idxTmp); |