mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: bug fix (do not send streamPropertyChanged from mobile devices when rotating if stream not Published)
parent
b6ea4d0584
commit
f28f006370
|
@ -109,7 +109,7 @@ export class OpenVidu {
|
|||
// Listen to orientationchange only on mobile devices
|
||||
(<any>window).addEventListener('orientationchange', () => {
|
||||
this.publishers.forEach(publisher => {
|
||||
if (!!publisher.stream && !!publisher.stream.hasVideo && !!publisher.stream.streamManager.videos[0]) {
|
||||
if (publisher.stream.isLocalStreamPublished && !!publisher.stream && !!publisher.stream.hasVideo && !!publisher.stream.streamManager.videos[0]) {
|
||||
|
||||
let attempts = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue