A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.
The
MiniAudioPlayer
component manages audio playback for participants in a meeting, including volume control, audio visualization, and connection to the main application state. It uses audio analysis to display waveforms for active speakers and supports breakout room conditions, participant-specific audio decibel updates, and other media state dependencies.Component
Example
Param: stream
The audio stream from the participant.
Param: consumer
The audio consumer for the participant.
Param: remoteProducerId
Unique ID for the remote producer of the audio stream.
Param: parameters
Configuration object with various parameters and utility functions for audio management.
Param: MiniAudioComponent
Optional audio visualization component injected into the
MiniAudioPlayer
.Param: miniAudioProps
Additional properties for configuring the audio visualization component.
Returns
The created audio player element.
Remarks
The
MiniAudioPlayer
processes audio data and manage audio levels. It supports a dynamic breakout room feature that restricts audio visibility to limited participants, updates decibel levels for individual participants, and adjusts the waveforms based on audio activity.Key functionalities include:
Injector
.Dependencies
setInterval
for periodic volume level checks (auto-clears on component destruction).ReUpdateInterType
andUpdateParticipantAudioDecibelsType
for dynamic participant audio decibel management.Example