The options for the producer media paused event.
A promise that resolves when the media paused handling is complete.
This function handles the event when media is paused for a producer. It performs the following tasks:
const options = {
producerId: "abc123",
kind: "audio",
name: "Participant1",
parameters: {
activeSounds: [],
meetingDisplayType: "media",
meetingVideoOptimized: false,
participants: [{ name: "Participant1", muted: true, islevel: "2", videoID: null }],
oldSoundIds: ["Participant1"],
shared: false,
shareScreenStarted: false,
updateMainWindow: false,
hostLabel: "Host",
islevel: "1",
updateActiveSounds: (sounds) => console.log("Active sounds updated:", sounds),
updateUpdateMainWindow: (update) => console.log("Main window update:", update),
reorderStreams: async (params) => console.log("Reordered streams:", params),
prepopulateUserMedia: async (params) => console.log("Prepopulated user media:", params),
reUpdateInter: async (params) => console.log("Re-updated interface:", params),
getUpdatedAllParams: () => ({ }),
},
};
await producerMediaPaused(options);
Handles the event when media is paused for a producer.