Skip to content

Commit

Permalink
chore(2.2.17): released new version 2.2.17
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyamjain-plivo authored Jan 23, 2025
1 parent 465f179 commit 392aa61
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable GA release changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## v2.2.17 (released@ 23-01-2025)

**Bug Fixes**
* Fixed: Remote Audio Fails to Play Through the Default Device After Bluetooth Disconnection.

## v2.2.16 (released@ 16-01-2025)

**Feature**
Expand Down
17 changes: 11 additions & 6 deletions lib/media/audioDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -710,13 +710,18 @@ export const checkAudioDevChange = function (): void {

if (device.kind === 'audiooutput') {
if ((lastActiveSpeakerDevice !== '' && lastActiveSpeakerDevice !== 'default') && clientObject) {
if (!client._currentSession) {
const initialRemoteView = document.getElementById(REMOTE_VIEW_ID);
initialRemoteView?.remove();
setupRemoteView();
Plivo.log.debug("Remote view id removed");
}
// if (!client._currentSession) {
const remoteTrack = clientObject.remoteView.srcObject;
const initialRemoteView = document.getElementById(REMOTE_VIEW_ID);
initialRemoteView?.remove();
setupRemoteView();
Plivo.log.debug(`${LOGCAT.CALL_QUALITY} | Remote view id replaced`);
// }
clientObject.remoteView = document.getElementById(REMOTE_VIEW_ID);
if (clientObject._currentSession && remoteTrack) {
Plivo.log.debug(`${LOGCAT.CALL_QUALITY} | Remote view src object added`);
clientObject.remoteView.srcObject = remoteTrack;
}
}
Plivo.log.info(`${LOGCAT.CALL_QUALITY} Audio output device removed:- `, JSON.stringify(device));
setTimeout(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "plivo-browser-sdk",
"title": "plivo-browser-sdk",
"version": "2.2.16",
"version": "2.2.17",
"description": "This library allows you to connect with plivo's voice enviroment from browser",
"main": "./dist/plivobrowsersdk.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 392aa61

Please sign in to comment.