openvidu-testapp: do not initPublisher if SUBSCRIBER

pull/203/head
pabloFuente 2019-02-08 11:08:08 +01:00
parent 0304869576
commit 2dd8ca44f8
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy {
.then(() => {
this.changeDetector.detectChanges();
if (this.publishTo) {
if (this.publishTo && this.session.capabilities.publish) {
// this.asyncInitPublisher();
this.syncInitPublisher();
}