diff --git a/packages/@webex/plugin-meetings/src/meeting/index.ts b/packages/@webex/plugin-meetings/src/meeting/index.ts index e77b7033138..823e75bac32 100644 --- a/packages/@webex/plugin-meetings/src/meeting/index.ts +++ b/packages/@webex/plugin-meetings/src/meeting/index.ts @@ -2655,6 +2655,7 @@ export default class Meeting extends StatelessWebexPlugin { }); this.locusInfo.on(LOCUSINFO.EVENTS.CONTROLS_PRACTICE_SESSION_STATUS_UPDATED, ({state}) => { + this.webinar.updatePracticeSessionStatus(state); Trigger.trigger( this, {file: 'meeting/index', function: 'setupLocusControlsListener'}, diff --git a/packages/@webex/plugin-meetings/src/webinar/index.ts b/packages/@webex/plugin-meetings/src/webinar/index.ts index 1b4fbc460db..dd2653a4133 100644 --- a/packages/@webex/plugin-meetings/src/webinar/index.ts +++ b/packages/@webex/plugin-meetings/src/webinar/index.ts @@ -23,6 +23,7 @@ const Webinar = WebexPlugin.extend({ canManageWebcast: 'boolean', // appears the ability to manage webcast selfIsPanelist: 'boolean', // self is panelist selfIsAttendee: 'boolean', // self is attendee + practiceSessionEnabled: 'boolean', // practice session enabled }, /** @@ -93,6 +94,15 @@ const Webinar = WebexPlugin.extend({ throw error; }); }, + + /** + * update practice session status + * @param {object} payload + * @returns {void} + */ + updatePracticeSessionStatus(payload) { + this.set('practiceSessionEnabled', payload.enabled); + }, }); export default Webinar;