Merge pull request #803 from semmel/patch-1

fix: remove video element which was never inserted before
pull/809/head
Carlos Santos 2023-05-29 11:18:50 +02:00 committed by GitHub
commit c1cec2c07d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ export class Publisher extends StreamManager {
getVideoDimensions(): Promise<{ width: number; height: number }> {
return new Promise((resolve, reject) => {
// Ionic iOS and Safari iOS supposedly require the video element to actually exist inside the DOM
const requiresDomInsertion: boolean = platform.isIonicIos() || platform.isIOSWithSafari();
const requiresDomInsertion: boolean = (platform.isIonicIos() || platform.isIOSWithSafari()) && (this.videoReference.readyState < 1);
let loadedmetadataListener;
const resolveDimensions = () => {