Skip to content

Commit

Permalink
it doesn't hide the video display now and loading is in the center of…
Browse files Browse the repository at this point in the history
… the video and scales according to the size
  • Loading branch information
eneskuluk committed May 20, 2021
1 parent 013c35d commit de7b106
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/webapp/player.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@
display:none;
}
#video-overlay {
margin: 0 auto;
position: absolute;
left: 25%;
right: 25%;
top: 25%;
display: none;
z-index: 9999999;
}
#video-overlay img{
width: 25%;
}
</style>
</head>
<body>
Expand Down Expand Up @@ -333,10 +339,9 @@ <h3 class="col text-muted">WebRTC Play</h3>
let overlay = document.getElementById('video-overlay');
getVideo.pause();
overlay.style.display = "block";
getVideo.style.display = "none";
// Call set stream resolution
webRTCAdaptor.forceStreamQuality(streamId, Number(dropdownSelectedItem));
setTimeout(function(){ getVideo.play();overlay.style.display = "none"; getVideo.style.display = "block"; }, 2000);
setTimeout(function(){ getVideo.play();overlay.style.display = "none";}, 2000);
// Remove current active item
$('a.dropdown-item.active').removeClass("active");
// Add active in new item
Expand Down

0 comments on commit de7b106

Please sign in to comment.