disable input device checking when recvOnly
This commit is contained in:
parent
b17987dd53
commit
0d867e1939
|
|
@ -35,7 +35,6 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="float: right; width: 70%">
|
<div style="float: right; width: 70%">
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label for="streamUrl">url:</label>
|
<label for="streamUrl">url:</label>
|
||||||
<input type="text" style="co; width:70%" id='streamUrl' value="http://192.168.1.101/index/api/webrtc?app=live&stream=xiong&type=play">
|
<input type="text" style="co; width:70%" id='streamUrl' value="http://192.168.1.101/index/api/webrtc?app=live&stream=xiong&type=play">
|
||||||
|
|
@ -96,7 +95,6 @@
|
||||||
</select>
|
</select>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label for="audioDevice">audiodevice:</label>
|
<label for="audioDevice">audiodevice:</label>
|
||||||
<select id="audioDevice">
|
<select id="audioDevice">
|
||||||
|
|
@ -109,10 +107,6 @@
|
||||||
</p>
|
</p>
|
||||||
<button onclick="switchVideo()">切换视频(switch video)</button>
|
<button onclick="switchVideo()">切换视频(switch video)</button>
|
||||||
<button onclick="switchAudio()">切换音频(switch audio)</button>
|
<button onclick="switchAudio()">切换音频(switch audio)</button>
|
||||||
|
|
||||||
|
|
||||||
<div>11111</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -206,8 +200,17 @@
|
||||||
let elv = document.getElementById("videoDevice");
|
let elv = document.getElementById("videoDevice");
|
||||||
let ela = document.getElementById("audioDevice");
|
let ela = document.getElementById("audioDevice");
|
||||||
|
|
||||||
let vdevid = JSON.parse(elv.options[elv.selectedIndex].value).deviceId
|
let vdevid = ''
|
||||||
let adevid = JSON.parse(ela.options[ela.selectedIndex].value).deviceId
|
let adevid = ''
|
||||||
|
|
||||||
|
if (!recvOnly) {
|
||||||
|
if (elv.selectedIndex !== -1) {
|
||||||
|
vdevid = JSON.parse(elv.options[elv.selectedIndex].value).deviceId
|
||||||
|
}
|
||||||
|
if (ela.selectedIndex !== -1) {
|
||||||
|
adevid = JSON.parse(ela.options[ela.selectedIndex].value).deviceId
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
player = new ZLMRTCClient.Endpoint(
|
player = new ZLMRTCClient.Endpoint(
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue