Commit 189b6044b4f49b43c83ebadeebf0e41457bfb518

Authored by xiaoQQya
1 parent 3e71e0bd

fix(devicePlayer): 修复设备视频播放页 HTTPS 环境下 WebRTC 无法播放的问题

web_src/src/components/dialog/devicePlayer.vue
... ... @@ -121,6 +121,10 @@
121 121 <el-tag >RTC:</el-tag>
122 122 <span>{{ streamInfo.rtc }}</span>
123 123 </el-dropdown-item>
  124 + <el-dropdown-item :command="streamInfo.rtcs">
  125 + <el-tag >RTCS:</el-tag>
  126 + <span>{{ streamInfo.rtcs }}</span>
  127 + </el-dropdown-item>
124 128 <el-dropdown-item :command="streamInfo.rtmp">
125 129 <el-tag >RTMP:</el-tag>
126 130 <span>{{ streamInfo.rtmp }}</span>
... ... @@ -322,7 +326,7 @@ export default {
322 326 player: {
323 327 jessibuca : ["ws_flv", "wss_flv"],
324 328 livePlayer : ["ws_flv", "wss_flv"],
325   - webRTC: ["rtc", "rtc"],
  329 + webRTC: ["rtc", "rtcs"],
326 330 },
327 331 videoHistory: {
328 332 date: '',
... ... @@ -393,7 +397,7 @@ export default {
393 397 changePlayer: function (tab) {
394 398 console.log(this.player[tab.name][0])
395 399 this.activePlayer = tab.name;
396   - this.videoUrl = this.streamInfo[this.player[tab.name][0]]
  400 + this.videoUrl = this.getUrlByStreamInfo()
397 401 console.log(this.videoUrl)
398 402 },
399 403 openDialog: function (tab, deviceId, channelId, param) {
... ...