import { AfterViewInit, ElementRef, Injector, OnChanges, OnDestroy, SimpleChanges } from '@angular/core'; import * as i0 from "@angular/core"; /** Anything with a receiver whose stats carry the inbound audio level (a mediasoup Consumer). */ export interface ScreenAudioConsumerLike { rtpReceiver?: { getStats: () => Promise; } | null; } export interface ScreenAudioPlayerOptions { /** Stream holding the screen-share audio track. */ stream: MediaStream | null; /** Producer id of the screen-share audio (used to remove the player when the share stops). */ remoteProducerId: string; /** The consumer, used for its audio level (the card shows while sound plays). */ consumer?: ScreenAudioConsumerLike | null; /** Name of the participant sharing the screen. */ ownerName?: string; /** Listening volume, 0..1 (default 1). */ volume?: number; /** Card component (default MiniAudio, or the app's custom mini audio component). */ MiniAudioComponent?: any; /** Extra inputs for the card. */ miniAudioProps?: Record; /** Hide the card entirely (audio still plays). */ hideCard?: boolean; } /** * Plays audio shared with a screen share. While it plays, it shows an audio card (" · Screen audio") with a * waveform, like other audio-only sources; it never marks the sharer as speaking. Clicking the card mutes or unmutes * it for this listener only. `audio[data-screen-audio="true"]` (or `setScreenAudioVolume`) sets the listening volume. * * Rendered by consumer resume into `audioOnlyStreams` as `{ component: ScreenAudioPlayer, inputs: {...} }`; the inputs * arrive through the injector like the other audio-only players. * * @example * ```html * * * ``` */ export declare class ScreenAudioPlayer implements AfterViewInit, OnChanges, OnDestroy { private injector; stream: MediaStream | null; remoteProducerId: string; consumer: ScreenAudioConsumerLike | null; ownerName: string; volume: number; MiniAudioComponent: any; miniAudioProps: Record; hideCard: boolean; audioElement?: ElementRef; active: boolean; muted: boolean; private levelTimer; private cachedInjector; private cachedKey; private cachedProps; private readonly unlock; constructor(injector: Injector, injectedStream?: MediaStream | null, injectedRemoteProducerId?: string, injectedConsumer?: ScreenAudioConsumerLike | null, injectedOwnerName?: string, injectedVolume?: number, injectedMiniAudioComponent?: any, injectedMiniAudioProps?: Record, injectedHideCard?: boolean); get label(): string; /** Inputs for the card; the injector is rebuilt only when what it shows changes. */ cardInputs(): Record; cardInjector(): Injector; ngAfterViewInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; toggleMuted(): void; private attachStream; private removeUnlockListeners; private applyVolume; private startLevelPolling; private stopLevelPolling; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }