Skip to content

Commit

Permalink
fix: more logs for publishing/unpublishing streams and sharing (#3979)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-bazyl authored Nov 15, 2024
1 parent f6017e0 commit de66ceb
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions packages/@webex/plugin-meetings/src/meeting/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2739,6 +2739,9 @@ export default class Meeting extends StatelessWebexPlugin {
newShareStatus = SHARE_STATUS.NO_SHARE;
}

LoggerProxy.logger.info(
`Meeting:index#setUpLocusInfoMediaInactiveListener --> this.shareStatus=${this.shareStatus} newShareStatus=${newShareStatus}`
);
if (newShareStatus !== this.shareStatus) {
const oldShareStatus = this.shareStatus;

Expand Down Expand Up @@ -8182,6 +8185,9 @@ export default class Meeting extends StatelessWebexPlugin {
* @returns {undefined}
*/
private handleShareAudioStreamEnded = async () => {
LoggerProxy.logger.info(
`Meeting:index#handleShareAudioStreamEnded --> audio share stream ended`
);
// current share audio stream has ended, but there might be an active
// share video stream. we only leave from wireless share if share has
// completely ended, which means no share audio or video streams active
Expand Down Expand Up @@ -8224,6 +8230,9 @@ export default class Meeting extends StatelessWebexPlugin {
* @returns {undefined}
*/
private handleShareVideoStreamEnded = async () => {
LoggerProxy.logger.info(
`Meeting:index#handleShareVideoStreamEnded --> video share stream ended`
);
// current share video stream has ended, but there might be an active
// share audio stream. we only leave from wireless share if share has
// completely ended, which means no share audio or video streams active
Expand Down Expand Up @@ -8712,6 +8721,9 @@ export default class Meeting extends StatelessWebexPlugin {
* @returns {Promise}
*/
async publishStreams(streams: LocalStreams): Promise<void> {
LoggerProxy.logger.info(
`Meeting:index#publishStreams --> called with: ${JSON.stringify(streams)}`
);
this.checkMediaConnection();
if (
!streams.microphone &&
Expand Down Expand Up @@ -8793,6 +8805,9 @@ export default class Meeting extends StatelessWebexPlugin {
* @returns {Promise}
*/
async unpublishStreams(streams: LocalStream[]): Promise<void> {
LoggerProxy.logger.info(
`Meeting:index#unpublishStreams --> called with: ${JSON.stringify(streams)}`
);
this.checkMediaConnection();

const promises = [];
Expand Down

0 comments on commit de66ceb

Please sign in to comment.