Commit 189b6044b4f49b43c83ebadeebf0e41457bfb518

Authored by xiaoQQya
1 parent 3e71e0bd

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

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