Giter Site home page Giter Site logo

Comments (16)

rmcfadden3 avatar rmcfadden3 commented on June 27, 2024

@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.

from brave-talk.

mrose17 avatar mrose17 commented on June 27, 2024

@rmcfadden3 - sorry for the confusion: at the present time, the design "ask" is only for an icon to go in the toolbar:
Screenshot 2024-04-05 at 08 15 51
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!

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

Is this actually possible with the JAAS API? https://developer.8x8.com/jaas/docs/customize-ui-buttons links to list of button names

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

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?

from brave-talk.

saghul avatar saghul commented on June 27, 2024

https://github.com/jitsi/jitsi-meet/blob/a76f9d548b2cfceaf335250867b88a41667107e0/config.js#L949

You can use a data URL or any URL to an icon.

from brave-talk.

mrose17 avatar mrose17 commented on June 27, 2024

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...

from brave-talk.

saghul avatar saghul commented on June 27, 2024

Here you go! https://jitsi.github.io/handbook/docs/dev-guide/dev-guide-iframe-events#toolbarbuttonclicked

from brave-talk.

mrose17 avatar mrose17 commented on June 27, 2024

Thank you!

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

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.

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

OK I managed to add Leo to customToolbarButtons and buttonsWithNotifyClick and added an event handler.

image

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.

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

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?

image

https://github.com/jitsi/jitsi-meet/blob/a76f9d548b2cfceaf335250867b88a41667107e0/config.js#L787-L789

// Notes:
// - it's impossible to choose which buttons go in the "More actions" menu
// - it's impossible to control the placement of buttons

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

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:

  • removing a lot of buttons like in the screenshot above
  • or replacing a load of inbuilt buttons with custom versions. This wouldn't work for the 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.

from brave-talk.

mrose17 avatar mrose17 commented on June 27, 2024

Just to clarify, the button should appear for context.user.moderator === true && context.features.transcription === true

from brave-talk.

bcaller avatar bcaller commented on June 27, 2024

Current state:
image
I don't believe there is currently a way to move the button onto the main bar.

I was able to get the following:
image
Only by deleting all the toolbar buttons which appear in More Actions. Since we need those buttons, we have a problem.

from brave-talk.

saghul avatar saghul commented on June 27, 2024

Sorry I mislead you. I can confirm this is not currenrly possible. We'll work on making it possible.

from brave-talk.

mrose17 avatar mrose17 commented on June 27, 2024

@saghul - Understood. Thanks for working on it.

from brave-talk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.