import { clContext as nodenCLContext, OpenCLBuffer } from 'nodencl'; import { RedioPipe, RedioEnd } from 'redioactive'; import { Frame } from 'beamcoder'; import { ConsumerFactory, Consumer } from '../consumer'; import { ConfigParams, VideoFormat, DeviceConfig } from '../../config'; import { ClJobs } from '../../clJobQueue'; import { RTCPeerConnection } from 'wrtc'; export declare class WebRTCConsumer implements Consumer { private readonly clContext; private readonly chanID; private readonly rtcUuid; private readonly params; private readonly format; private readonly clJobs; private fromRGBA; private vidField; private readonly audioOutChannels; private readonly audioSampleRate; private readonly audioTimebase; private readonly videoTimebase; private audFilterer; private peerManager; private rtcVideoSource; private rtcVideoTrack; private rtcAudioSource; private rtcAudioTrack; constructor(context: nodenCLContext, chanID: string, params: ConfigParams, format: VideoFormat, clJobs: ClJobs); destroy(): Promise; initialise(): Promise; newPeer: ({ peerConnection }: { peerConnection: RTCPeerConnection; }) => void; peerClose: ({}: { peerConnection: RTCPeerConnection; }) => void; connect(combineAudio: RedioPipe, combineVideo: RedioPipe): void; } export declare class WebRTCConsumerFactory implements ConsumerFactory { private readonly clContext; constructor(clContext: nodenCLContext); createConsumer(chanID: string, params: ConfigParams, format: VideoFormat, _device: DeviceConfig, clJobs: ClJobs): WebRTCConsumer; }