Commit 29b4734b authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Adapt typing to TypeScript 4.5.4.

parent 221ed445
...@@ -917,9 +917,9 @@ function Filter(stream, definition) { ...@@ -917,9 +917,9 @@ function Filter(stream, definition) {
this.fixedFramerate = false; this.fixedFramerate = false;
/** @type {Object} */ /** @type {Object} */
this.userdata = {} this.userdata = {}
/** @type {MediaStream} */
/** @ts-ignore */
this.captureStream = this.canvas.captureStream(0); this.captureStream = this.canvas.captureStream(0);
/** @ts-ignore */ /** @ts-ignore */
if(!this.captureStream.getTracks()[0].requestFrame) { if(!this.captureStream.getTracks()[0].requestFrame) {
console.warn('captureFrame not supported, using fixed framerate'); console.warn('captureFrame not supported, using fixed framerate');
...@@ -1141,7 +1141,6 @@ function setUpStream(c, stream) { ...@@ -1141,7 +1141,6 @@ function setUpStream(c, stream) {
t.enabled = false; t.enabled = false;
} else if(t.kind == 'video') { } else if(t.kind == 'video') {
if(settings.blackboardMode) { if(settings.blackboardMode) {
/** @ts-ignore */
t.contentHint = 'detail'; t.contentHint = 'detail';
} }
} }
...@@ -1344,7 +1343,6 @@ async function addShareMedia() { ...@@ -1344,7 +1343,6 @@ async function addShareMedia() {
try { try {
if(!('getDisplayMedia' in navigator.mediaDevices)) if(!('getDisplayMedia' in navigator.mediaDevices))
throw new Error('Your browser does not support screen sharing'); throw new Error('Your browser does not support screen sharing');
/** @ts-ignore */
stream = await navigator.mediaDevices.getDisplayMedia({video: true}); stream = await navigator.mediaDevices.getDisplayMedia({video: true});
} catch(e) { } catch(e) {
console.error(e); console.error(e);
...@@ -1799,13 +1797,10 @@ function registerControlHandlers(localId, media, container) { ...@@ -1799,13 +1797,10 @@ function registerControlHandlers(localId, media, container) {
let pip = getVideoButton(container, 'pip'); let pip = getVideoButton(container, 'pip');
if(pip) { if(pip) {
/** @ts-ignore */
if(HTMLVideoElement.prototype.requestPictureInPicture) { if(HTMLVideoElement.prototype.requestPictureInPicture) {
pip.onclick = function(e) { pip.onclick = function(e) {
e.preventDefault(); e.preventDefault();
/** @ts-ignore */
if(media.requestPictureInPicture) { if(media.requestPictureInPicture) {
/** @ts-ignore */
media.requestPictureInPicture(); media.requestPictureInPicture();
} else { } else {
displayWarning('Picture in Picture not supported.'); displayWarning('Picture in Picture not supported.');
......
...@@ -1215,7 +1215,6 @@ Stream.prototype.restartIce = function () { ...@@ -1215,7 +1215,6 @@ Stream.prototype.restartIce = function () {
if('restartIce' in c.pc) { if('restartIce' in c.pc) {
try { try {
/** @ts-ignore */
c.pc.restartIce(); c.pc.restartIce();
return; return;
} catch(e) { } catch(e) {
......
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