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.
FontAwesome icon for closing the modal.
FontAwesome icon for sync.
FontAwesome icon for camera.
FontAwesome icon for microphone.
FontAwesome icon for photo film.
Currently selected video input device ID.
Currently selected audio input device ID.
Previously selected video input device ID.
Previously selected audio input device ID.
MediaSettingsModal component renders a modal interface for managing media settings. Users can switch between different audio and video input devices and adjust other settings.
Component
Selector
app-media-settings-modal
Standalone
true
Imports
[CommonModule, FontAwesomeModule, FormsModule]
Example
Input
isMediaSettingsModalVisible - Indicates whether the modal is visible.
Input
onMediaSettingsClose - Function to close the modal.
Input
switchCameraOnPress - Function to handle camera switching.
Input
switchVideoOnPress - Function to handle video switching.
Input
switchAudioOnPress - Function to handle audio switching.
Input
parameters - Parameters for the modal.
Input
position - Position of the modal on the screen (default: 'topRight').
Input
backgroundColor - Background color of the modal (default: '#83c0e9').
Param: switchAudioService
Service for switching audio.
Param: switchVideoService
Service for switching video.
Param: switchVideoAltService
Alternative service for switching video.
Method
ngOnInit - Initializes the component and sets up default selections and services.
Method
ngOnChanges - Updates component state based on input changes.
Method
setupDefaultServices - Configures default services for switching camera, video, and audio.
Method
updateParameters - Updates the modal parameters.
Method
ensureDefaultSelections - Ensures default selections for video and audio inputs.
Method
initializeModalSettings - Initializes the modal settings.
Method
modalContentStyle - Returns the style object for the modal content.
Method
handleSwitchCamera - Initiates camera switching.
Method
handleVideoSwitch - Initiates video input switching.
Method
handleAudioSwitch - Initiates audio input switching.
Method
handleModalClose - Closes the modal.
Method
showVirtual - Toggles the virtual background modal.