Commit acb381fe authored by 毛线's avatar 毛线

save

parent 50270d7b
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt=""> <img v-if="tabIndex === index" class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/Rounded%20Rectangle%2019.png" alt="">
<img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt=""> <img v-else class="tab-img" src="https://kuawai.s3.ap-east-1.amazonaws.com/resource/assets/Textures/second/last_game%20%E6%8B%B7%E8%B4%9D%202.png" alt="">
<div class="text">{{ text }}</div> <div class="text">{{ text }}</div>
<div v-if="index === 0" class="version">{{ `1.0.019` }}</div> <div v-if="index === 0" class="version">{{ `1.0.020` }}</div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -79,7 +79,8 @@ export default { ...@@ -79,7 +79,8 @@ export default {
if (!url || +url === 0) { if (!url || +url === 0) {
return return
} }
const webrtc = `webrtc://eslotstreaming.com${url}` console.log('play1', url)
const webrtc = url.includes('webrtc') ? url : `webrtc://eslotstreaming.com${url}`
this.$refs.player1.initVideo(webrtc) this.$refs.player1.initVideo(webrtc)
}, },
play2() { play2() {
...@@ -87,7 +88,8 @@ export default { ...@@ -87,7 +88,8 @@ export default {
if (!url || +url === 0) { if (!url || +url === 0) {
return return
} }
const webrtc = `webrtc://eslotstreaming.com${url}` console.log('play2', url)
const webrtc = url.includes('webrtc') ? url : `webrtc://eslotstreaming.com${url}`
this.$refs.player2.initVideo(webrtc) this.$refs.player2.initVideo(webrtc)
}, },
}, },
......
...@@ -275,7 +275,7 @@ JSWebrtc.Player = function() { ...@@ -275,7 +275,7 @@ JSWebrtc.Player = function() {
if (api.lastIndexOf("/") != api.length - 1) { if (api.lastIndexOf("/") != api.length - 1) {
api += "/" api += "/"
} }
var url = "https://" + _self.urlParams.server + ":" + port + api; var url = (port === 443 ? "https://" : 'http://') + _self.urlParams.server + ":" + port + api;
for (var key in _self.urlParams.user_query) { for (var key in _self.urlParams.user_query) {
if (key != "api" && key != "play") { if (key != "api" && key != "play") {
url += "&" + key + "=" + _self.urlParams.user_query[key] url += "&" + key + "=" + _self.urlParams.user_query[key]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment