TeamMaestro / nativescript-opentok

Integrates OpenTok (TokBox) WebRTC for NativeScript.
Other
10 stars 16 forks source link

this.publisher.events return undefined #27

Closed darkbcx closed 7 years ago

darkbcx commented 7 years ago
    initPublisher() {
        this.session.connect(this._publisherToken);
        this.publisher.publish(this.session, '', 'HIGH', '30');
        this.publisher.events.on('streamDestroyed', (result) => {
            console.log('publisher stream destroyed');
        });
    }

I got error message : TypeError: Cannot read property 'on' of undefined

triniwiz commented 7 years ago

@darkbcx update to the latest version 😄