diff --git a/README.md b/README.md index d8897b8..bdc3256 100755 --- a/README.md +++ b/README.md @@ -264,6 +264,23 @@ To enable a video, use the defaultVideo (as in the example below). By default, t await VoxeetSDK.defaultVideo(true); ``` +### Events + +**ConferenceStatusUpdated** + +To receive events regarding the status of the local `Conference`. This method will be refactored in a future version to provide more events in a consistent and coherent way. + +``` + +const callback = (event: ConferenceStatusUpdated) => { + const { conferenceId, conferenceAlias, status } = event; + console.warn(`${conferenceId}/${conferenceAlias} := ${status}`); +}; + +await VoxeetSDK.onConferenceStatusUpdatedEvent(callback); +``` + + ## Documentation A full documentation can be found here: https://dolby.io/developers/interactivity-apis/client-ux-kit/uxkit-voxeet-cordova. diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 56b967d..d71be6d 100755 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -1,5 +1,8 @@ # Release Notes +### 1.5.2 (Mar 5th, 2021) +- Android, fix ConferenceStatusUpdated `status` name + ### 1.5.1 (Mar 2nd, 2021) - bump iOS SDK to 3.1.0 and iOS UXKit to 1.4.2 - add `onConferenceStatusUpdatedEvent` event diff --git a/package.json b/package.json index ca10668..35b5aa7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-voxeet", - "version": "1.5.1", + "version": "1.5.2", "description": "Cordova Voxeet Plugin", "cordova": { "id": "cordova-plugin-voxeet", diff --git a/plugin.xml b/plugin.xml index 69d7db1..475c817 100755 --- a/plugin.xml +++ b/plugin.xml @@ -18,7 +18,7 @@ + version="1.5.2"> Voxeet Cordova Voxeet Plugin Apache 2.0 License diff --git a/src/android/com/voxeet/toolkit/VoxeetCordova.java b/src/android/com/voxeet/toolkit/VoxeetCordova.java index 04e6000..7be3948 100644 --- a/src/android/com/voxeet/toolkit/VoxeetCordova.java +++ b/src/android/com/voxeet/toolkit/VoxeetCordova.java @@ -1172,7 +1172,7 @@ public void onEvent(ConferenceStatusUpdatedEvent event) { if (onConferenceStatusUpdatedEventCallback != null) { try { JSONObject jObject = new JSONObject() - .put("state", event.state.toString()) + .put("status", event.state.toString()) .put("conferenceAlias", event.conferenceAlias); if (event.conference != null) { jObject.put("conferenceId", event.conference.getId());