Use the ButtonsFactory to create buttons with icons and functionality
Get access to the default buttons by using ButtonsFactory.getOrCreate()
The factory will create the buttons if they don't exist yet, and return the existing ones if they do (this allows you to reparent or modify created buttons)

Constructors

Accessors

  • get fullscreenButton(): undefined | HTMLButtonElement

    Get the fullscreen button (or undefined if it doesn't exist yet). Call ButtonsFactory.createFullscreenButton to get or create it

    Returns undefined | HTMLButtonElement

  • get muteButton(): undefined | HTMLButtonElement

    Get the mute button (or undefined if it doesn't exist yet). Call ButtonsFactory.createMuteButton to get or create it

    Returns undefined | HTMLButtonElement

  • get qrButton(): undefined | HTMLButtonElement

    Get the QR code button (or undefined if it doesn't exist yet). Call ButtonsFactory.createQRCode to get or create it

    Returns undefined | HTMLButtonElement

Methods

  • Create a fullscreen button (or return the existing one if it already exists)

    Parameters

    Returns null | HTMLButtonElement

  • Create a mute button (or return the existing one if it already exists)

    Parameters

    Returns HTMLButtonElement

  • Create a QR code button (or return the existing one if it already exists) The QR code button will show a QR code that can be scanned to open the current page on a phone
    The QR code will be generated with the current URL when the button is clicked

    Returns HTMLButtonElement

    the QR code button element

  • Get access to the default HTML button factory.
    Use this to get or create default Needle Engine buttons that can be added to your HTML UI
    If you want to create a new factory and create new button instances instead of shared buttons, use ButtonsFactory.create() instead

    Returns ButtonsFactory