Member Junction
    Preparing search index...

    mj-camera-check: a look at the camera and a listen to the microphone before anything is shared. The camera shows mirrored, as in a mirror, beside a level meter, microphone and camera buttons, device pickers and, optionally, a name. Presentational: the host runs the preview. It passes the camera as CameraSource and the level as MicrophoneLevel, and starts, stops or switches devices when the check asks. Confirmed hands over the choices.

    For a check of the camera alone, give it cameras only and no microphone level, and turn off ShowControls; a CancelLabel adds a way out (Cancelled) beside the confirm button.

    Implements

    • AfterViewInit
    • OnDestroy
    Index

    Constructors

    Properties

    CameraOn: boolean = false

    Whether the camera is on.

    Cameras: readonly MediaDevice[] = []

    The cameras in Devices.

    CameraToggled: EventEmitter<boolean> = ...

    The user asked to turn the camera on (true) or off (false).

    CancelLabel: string = ''

    The label of a button beside the confirm button that backs out of the check (Cancelled); none when empty.

    Cancelled: EventEmitter<void> = ...

    The user backed out of the check with the CancelLabel button.

    Confirmed: EventEmitter<MediaCameraCheckChoices> = ...

    The user confirmed their choices.

    ConfirmLabel: string = 'Continue'

    The confirm button's label.

    DeviceSelected: EventEmitter<MediaDeviceSelection> = ...

    The user picked a device.

    DisplayName: string = ''

    The name being typed.

    Heading: string = 'Ready to join?'

    The heading above the controls; none when empty, as when the host titles the check itself.

    MeterSettings: MediaAudioMeterSettings = {}

    The meter's smoothing settings.

    MicrophoneLevel: (() => number) | null = null

    Reads the microphone's level, 0..1, for the meter.

    MicrophoneOn: boolean = true

    Whether the microphone is on.

    Microphones: readonly MediaDevice[] = []

    The microphones in Devices.

    MicrophoneToggled: EventEmitter<boolean> = ...

    The user asked to turn the microphone on (true) or off (false).

    RequireDisplayName: boolean = false

    Keep the confirm button off until a name is typed.

    SelectedCameraID: string | null = null

    The selected camera's device id.

    SelectedMicrophoneID: string | null = null

    The selected microphone's device id.

    ShowControls: boolean = true

    Show the microphone and camera buttons. Off when the confirm and cancel buttons are the only choices.

    ShowDeviceSelection: boolean = true

    Show the microphone and camera pickers.

    ShowDisplayName: boolean = false

    Ask for a name.

    Accessors

    Methods

    • A callback method that is invoked immediately after Angular has completed initialization of a component's view. It is invoked only once when the view is instantiated.

      Returns void

    • A callback method that performs custom clean-up, invoked immediately before a directive, pipe, or service instance is destroyed.

      Returns void