resize iframe if view width is smaller than frame
This commit is contained in:
parent
36a8e9ce60
commit
a307c5f743
@ -153,8 +153,8 @@
|
|||||||
|
|
||||||
// resize iframe if view width is smaller than frame
|
// resize iframe if view width is smaller than frame
|
||||||
if (document.getElementById('live').width > vw) {
|
if (document.getElementById('live').width > vw) {
|
||||||
document.getElementById('live').width = vw;
|
document.getElementById('live').setAttribute('width', vw + 'px');
|
||||||
document.getElementById('live').height = vw * (9 / 16);
|
document.getElementById('live').setAttribute('height', vw * (9 / 16) + 'px');
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if stream active every 5 seconds
|
// check if stream active every 5 seconds
|
||||||
|
Loading…
x
Reference in New Issue
Block a user