openvidu-browser: replace setAttribute('playsinline') with playsInline=true
This commit is contained in:
parent
17ff9105aa
commit
556b3a0a2b
@ -217,7 +217,7 @@ export class LocalRecorder {
|
||||
this.videoPreview.autoplay = true;
|
||||
|
||||
if (platform.isSafariBrowser()) {
|
||||
this.videoPreview.setAttribute('playsinline', 'true');
|
||||
this.videoPreview.playsInline = true;
|
||||
}
|
||||
|
||||
if (typeof parentElement === 'string') {
|
||||
|
||||
@ -746,7 +746,7 @@ export class Publisher extends StreamManager {
|
||||
this.videoReference.autoplay = true;
|
||||
this.videoReference.controls = false;
|
||||
if (platform.isSafariBrowser() || (platform.isIPhoneOrIPad() && (platform.isChromeMobileBrowser() || platform.isEdgeMobileBrowser() || platform.isOperaMobileBrowser() || platform.isFirefoxMobileBrowser()))) {
|
||||
this.videoReference.setAttribute('playsinline', 'true');
|
||||
this.videoReference.playsInline = true;
|
||||
}
|
||||
this.stream.setMediaStream(mediaStream);
|
||||
if (!!this.firstVideoElement) {
|
||||
|
||||
@ -127,7 +127,7 @@ export abstract class StreamManager extends EventDispatcher {
|
||||
canplayListenerAdded: false
|
||||
};
|
||||
if (platform.isSafariBrowser() || (platform.isIPhoneOrIPad() && (platform.isChromeMobileBrowser() || platform.isEdgeMobileBrowser() || platform.isOperaMobileBrowser() || platform.isFirefoxMobileBrowser()))) {
|
||||
this.firstVideoElement.video.setAttribute('playsinline', 'true');
|
||||
this.firstVideoElement.video.playsInline = true;
|
||||
}
|
||||
this.targetElement = targEl;
|
||||
this.element = targEl;
|
||||
@ -403,7 +403,7 @@ export abstract class StreamManager extends EventDispatcher {
|
||||
video.controls = false;
|
||||
|
||||
if (platform.isSafariBrowser() || (platform.isIPhoneOrIPad() && (platform.isChromeMobileBrowser() || platform.isEdgeMobileBrowser() || platform.isOperaMobileBrowser() || platform.isFirefoxMobileBrowser()))) {
|
||||
video.setAttribute('playsinline', 'true');
|
||||
video.playsInline = true;
|
||||
}
|
||||
|
||||
if (!video.id) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user