TeamMaestro / nativescript-opentok

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

Android API Contract #10

Closed sean-perkins closed 7 years ago

sean-perkins commented 8 years ago

Do your best to match the existing call signature for iOS, in Android. We need to expose the event callbacks (listeners) from the Android SDK to the demo app, in order to allow users to attach custom logic to event firings.

For example, in iOS the demo app has this call signature:

this._session.sessionEvents.on('sessionDidConnect', (result) => {
    console.log('sessionConnected event');
    this._session.publish();
    this._session.publisherEvents.on('streamCreated', () => {
        console.log('streamCreated event on publisher object');
    });
});

Parent task: #12

triniwiz commented 7 years ago

Done