Closed mrose17 closed 1 week ago
@minkyeongshin — can you drop a screenshot of your design mock once it's ready? That way I'll know how much real estate I have to work with, in terms of character count.
@rmcfadden3 - sorry for the confusion: at the present time, the design "ask" is only for an icon to go in the toolbar: initially, we're planning to use the Jitsi showNotification API call. so you can have a "reasonable" amount of text (say up to 300 characters).
in the future we may implement our own notification routine, but for now, we're focusing on the functionality... thanks!
Is this actually possible with the JAAS API? https://developer.8x8.com/jaas/docs/customize-ui-buttons links to list of button names
Well we can brand the default icons as described at https://developer.8x8.com/jaas/docs/jaas-prefs-advanced-branding#branding-data-payload - but are we able to create a new icon or do we have to be sneaky and misuse an existing icon?
https://github.com/jitsi/jitsi-meet/blob/a76f9d548b2cfceaf335250867b88a41667107e0/config.js#L949
You can use a data URL or any URL to an icon.
Thanks. Please remind me: what handler triggers when a button is pressed (presumably indexed by id
)... sorry for not knowing this stuff better by now...
Thank you!
I see, I was looking at the wrong documentation (developer.8x8.com rather than jitsi.github.io) and there is in fact a customToolbarButtons config option.
OK I managed to add Leo to customToolbarButtons
and buttonsWithNotifyClick
and added an event handler.
But the button only appears in the toolbar menu rather than the main toolbar. I'm not yet sure how to customise which buttons appear at the bottom of the screen.
OK, I think some config can be done via executeCommand('overwriteConfig',{toolbarButtons: [
. But where do we specify the initial order of microphone, camera, desktop, chat, raisehand... is that just the default?
// Notes:
// - it's impossible to choose which buttons go in the "More actions" menu
// - it's impossible to control the placement of buttons
Ah OK the order is defined here: https://github.com/jitsi/jitsi-meet/blob/b54cec8d77fee77218378532bfac665e75289f90/react/features/toolbox/functions.web.ts#L410-L442
So the Leo icon will always be at the end of the "More Actions" menu and we can't move it without either:
raisehand
or reactions
, but we could place the Leo button at the end of the main toolbar.Overall, probably worth just starting with it at the end of the More Actions menu.
Just to clarify, the button should appear for context.user.moderator === true && context.features.transcription === true
Current state:
I don't believe there is currently a way to move the button onto the main bar.
I was able to get the following:
Only by deleting all the toolbar buttons which appear in More Actions. Since we need those buttons, we have a problem.
Sorry I mislead you. I can confirm this is not currenrly possible. We'll work on making it possible.
@saghul - Understood. Thanks for working on it.
Let's close this issue (I would do it, but I don't have permissions in this repo)
Add a "Leo" button to the toolbar. It should appear only for premium moderators. The button has two states: "on" and "off", which reflects whether transcription is on/off. The button toggles the transcription status. Note that this should not observe/interfere with A/V recording.
When a user (other than the moderator) gets their first transcript chunk, if they are using the Brave browser, use the Jitsi notification UI to tell the user that they can use Leo to analyze the meeting.
@minkyeongshin to provide the icon for the Leo button (based on what the Jitsi API expects). @rmcfadden3 to provide exact wording on notification.
@bcaller - note that to detect the current state of recording, the site should listen for the
recordingStatusChanged
event.