Test Arayüzü
This commit is contained in:
parent
bd3373fd10
commit
965ca07853
|
@ -71,7 +71,7 @@ function templateVideo(name, stream,infinitedMute)
|
||||||
<video autoplay playsinline muted data-name="${name}">
|
<video autoplay playsinline muted data-name="${name}">
|
||||||
|
|
||||||
</video>
|
</video>
|
||||||
<div class="tool-container">
|
<!--div class="tool-container">
|
||||||
<div class="tools">
|
<div class="tools">
|
||||||
<button>
|
<button>
|
||||||
<i class="material-icons">home</i>
|
<i class="material-icons">home</i>
|
||||||
|
@ -80,7 +80,7 @@ function templateVideo(name, stream,infinitedMute)
|
||||||
<i class="material-icons">close</i>
|
<i class="material-icons">close</i>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div--->
|
||||||
</div>
|
</div>
|
||||||
`,"text/html");
|
`,"text/html");
|
||||||
|
|
||||||
|
@ -108,9 +108,9 @@ function addVideoList(name, stream, peer, infinitedMute)
|
||||||
|
|
||||||
function removeVideoList(name)
|
function removeVideoList(name)
|
||||||
{
|
{
|
||||||
if(videoContainer.querySelector(`[data-name="${name}"]`))
|
if(videoContainer.querySelector(`[data-user="${name}"]`))
|
||||||
{
|
{
|
||||||
let k = videoContainer.querySelector(`[data-name="${name}"]`);
|
let k = videoContainer.querySelector(`[data-user="${name}"]`);
|
||||||
if(k.dataset.user == activeVideo?.dataset.user || !activeVideo)
|
if(k.dataset.user == activeVideo?.dataset.user || !activeVideo)
|
||||||
{
|
{
|
||||||
activePeer = null;
|
activePeer = null;
|
||||||
|
@ -258,7 +258,7 @@ function IncomingPeer(peer,activeConnect)
|
||||||
*/
|
*/
|
||||||
function OutgoingPeer(peer)
|
function OutgoingPeer(peer)
|
||||||
{
|
{
|
||||||
removeVideoList(peer.streamY, peer);
|
removeVideoList(peer.socketId, peer);
|
||||||
}
|
}
|
||||||
|
|
||||||
let relative;
|
let relative;
|
||||||
|
|
Loading…
Reference in New Issue