![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /proc/self/root/usr/local/lib/node_modules/mediasoup/lib/ |
Upload File : |
import { EnhancedEventEmitter } from './EnhancedEventEmitter'; import { Channel } from './Channel'; import { PayloadChannel } from './PayloadChannel'; import { Producer } from './Producer'; export declare type RtpObserverAddRemoveProducerOptions = { /** * The id of the Producer to be added or removed. */ producerId: string; }; export declare class RtpObserver extends EnhancedEventEmitter { protected readonly _internal: { routerId: string; rtpObserverId: string; }; protected readonly _channel: Channel; protected readonly _payloadChannel: PayloadChannel; protected _closed: boolean; protected _paused: boolean; private readonly _appData?; protected readonly _getProducerById: (producerId: string) => Producer; protected readonly _observer: EnhancedEventEmitter; /** * @private * @interface * @emits routerclose * @emits @close */ constructor({ internal, channel, payloadChannel, appData, getProducerById }: { internal: any; channel: Channel; payloadChannel: PayloadChannel; appData: any; getProducerById: (producerId: string) => Producer; }); /** * RtpObserver id. */ get id(): string; /** * Whether the RtpObserver is closed. */ get closed(): boolean; /** * Whether the RtpObserver is paused. */ get paused(): boolean; /** * App custom data. */ get appData(): any; /** * Invalid setter. */ set appData(appData: any); /** * Observer. * * @emits close * @emits pause * @emits resume * @emits addproducer - (producer: Producer) * @emits removeproducer - (producer: Producer) */ get observer(): EnhancedEventEmitter; /** * Close the RtpObserver. */ close(): void; /** * Router was closed. * * @private */ routerClosed(): void; /** * Pause the RtpObserver. */ pause(): Promise<void>; /** * Resume the RtpObserver. */ resume(): Promise<void>; /** * Add a Producer to the RtpObserver. */ addProducer({ producerId }: RtpObserverAddRemoveProducerOptions): Promise<void>; /** * Remove a Producer from the RtpObserver. */ removeProducer({ producerId }: RtpObserverAddRemoveProducerOptions): Promise<void>; } //# sourceMappingURL=RtpObserver.d.ts.map