openvidu-browser: bug fix (do not send streamPropertyChanged from mobile devices when rotating if stream not Published)

pull/375/head
pabloFuente 2019-06-06 17:48:30 +02:00
parent b6ea4d0584
commit f28f006370
1 changed files with 1 additions and 1 deletions

View File

@ -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;