UNPKG

@river-build/sdk

Version:

For more details, visit the following resources:

20 lines 1.28 kB
import TypedEmitter from 'typed-emitter'; import { Snapshot, MediaPayload_Snapshot } from '@river-build/proto'; import { RemoteTimelineEvent } from './types'; import { StreamStateView_AbstractContent } from './streamStateView_AbstractContent'; import { StreamEncryptionEvents, StreamStateEvents } from './streamEvents'; export declare class StreamStateView_Media extends StreamStateView_AbstractContent { readonly streamId: string; info: { spaceId: string; channelId: string; userId: string; chunkCount: number; chunks: Uint8Array[]; } | undefined; constructor(streamId: string); applySnapshot(_snapshot: Snapshot, content: MediaPayload_Snapshot, _emitter: TypedEmitter<StreamEncryptionEvents> | undefined): void; appendEvent(event: RemoteTimelineEvent, _cleartext: Uint8Array | string | undefined, _encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, _stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void; prependEvent(event: RemoteTimelineEvent, cleartext: Uint8Array | string | undefined, encryptionEmitter: TypedEmitter<StreamEncryptionEvents> | undefined, stateEmitter: TypedEmitter<StreamStateEvents> | undefined): void; } //# sourceMappingURL=streamStateView_Media.d.ts.map