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.
Optional
videoOptional
videoArray representing animation states for waveform bars.
Flag to toggle waveform animation. Default is true.
Interval reference for audio decibel checks.
FontAwesome icon for microphone.
FontAwesome icon for muted microphone.
FontAwesome icon for video.
FontAwesome icon for video off.
VideoCard component represents a customizable video display card with participant controls for toggling audio and video. It also animates an audio waveform if sound is detected in the participant's audio stream.
Selector
app-video-card
Standalone
true
Imports
[CommonModule, FontAwesomeModule, CardVideoDisplay]
Example
Input
customStyle - Styles for the card container.
Input
name - Name of the participant displayed on the card.
Input
barColor - Color of the waveform bars. Default is 'red'.
Input
textColor - Color of the name text. Default is 'white'.
Input
imageSource - Source URL of the participant's image.
Input
roundedImage - Whether the image should have rounded corners.
Input
imageStyle - Additional styles for the image.
Input
remoteProducerId - ID of the remote media producer.
Input
eventType - Type of event (used for internal logic).
Input
forceFullDisplay - Forces full display if true.
Input
videoStream - Stream of the video to be displayed.
Input
showControls - Determines if the controls are displayed. Default is true.
Input
showInfo - Determines if info (e.g., participant name) is shown. Default is true.
Input
videoInfoComponent - Custom component for video info display.
Input
videoControlsComponent - Custom component for video controls.
Input
controlsPosition - Position of controls overlay.
Input
infoPosition - Position of info overlay.
Input
participant - Participant data object.
Input
backgroundColor - Background color of the video card.
Input
audioDecibels - Audio decibel data for animating waveform.
Input
doMirror - If true, mirrors the video display.
Input
parameters - Additional parameters including socket and alert configuration.
Method
ngOnInit - Lifecycle hook to initialize audio decibel interval check.
Method
ngOnDestroy - Lifecycle hook to clear intervals.
Method
animateWaveform - Starts audio waveform animation.
Method
resetWaveform - Resets waveform animations.
Method
getAnimationDuration - Returns animation duration for given bar index.
Method
toggleAudio - Toggles participant's audio status.
Method
toggleVideo - Toggles participant's video status.
Method
renderControls - Renders the control buttons (audio and video) based on participant status.
Method
getOverlayPosition - Returns overlay position styles based on the input position string.
Method
isCustomComponent - Checks if a component is a custom component.
Method
isFunctionComponent - Checks if a component is a function component.