openvidu-testapp: do not initPublisher if SUBSCRIBER

This commit is contained in:
pabloFuente 2019-02-08 11:08:08 +01:00
parent 0304869576
commit 2dd8ca44f8

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();
}