Add option for audio live streaming
Starts jitsi streaming to a specially configured URL so that the jitsi server can start an audio-only stream, in combination with an API to manage audio streams by room ID.
This commit is contained in:
parent
4f0fccfe96
commit
b910fcd38a
2 changed files with 19 additions and 0 deletions
|
@ -126,6 +126,22 @@ let meetApi: any; // JitsiMeetExternalAPI
|
|||
widgetApi.transport.reply(ev.detail, {}); // ack
|
||||
},
|
||||
);
|
||||
widgetApi.on(`action:${ElementWidgetActions.StartLiveStream}`,
|
||||
(ev: CustomEvent<IWidgetApiRequest>) => {
|
||||
if (meetApi) {
|
||||
meetApi.executeCommand('startRecording', {
|
||||
mode: 'stream',
|
||||
// this looks like it should be rtmpStreamKey but we may be on too old
|
||||
// a version of jitsi meet
|
||||
//rtmpStreamKey: ev.detail.data.rtmpStreamKey,
|
||||
youtubeStreamKey: ev.detail.data.rtmpStreamKey,
|
||||
});
|
||||
widgetApi.transport.reply(ev.detail, {}); // ack
|
||||
} else {
|
||||
widgetApi.transport.reply(ev.detail, {error: {message: "Conference not joined"}});
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
enableJoinButton(); // always enable the button
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue