livekit-client
Advanced tools
Comparing version 2.9.4 to 2.9.5
@@ -38,2 +38,6 @@ import { DisconnectReason, RequestResponse_Reason } from '@livekit/protocol'; | ||
} | ||
export declare class PublishTrackError extends LivekitError { | ||
status: number; | ||
constructor(message: string, status: number); | ||
} | ||
export type RequestErrorReason = Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> | 'TimeoutError'; | ||
@@ -40,0 +44,0 @@ export declare class SignalRequestError extends LivekitError { |
@@ -128,2 +128,3 @@ import { Codec, ParticipantInfo, ParticipantPermission } from '@livekit/protocol'; | ||
private publishOrRepublishTrack; | ||
private hasPermissionsToPublish; | ||
private publish; | ||
@@ -130,0 +131,0 @@ get isLocal(): boolean; |
@@ -1,2 +0,2 @@ | ||
import { TrackPublishedResponse } from '@livekit/protocol'; | ||
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol'; | ||
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..'; | ||
@@ -44,2 +44,3 @@ import { Track } from './Track'; | ||
}; | ||
export declare function getTrackSourceFromProto(source: TrackSource): Track.Source; | ||
//# sourceMappingURL=utils.d.ts.map |
@@ -38,2 +38,6 @@ import { DisconnectReason, RequestResponse_Reason } from '@livekit/protocol'; | ||
} | ||
export declare class PublishTrackError extends LivekitError { | ||
status: number; | ||
constructor(message: string, status: number); | ||
} | ||
export type RequestErrorReason = Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> | 'TimeoutError'; | ||
@@ -40,0 +44,0 @@ export declare class SignalRequestError extends LivekitError { |
@@ -128,2 +128,3 @@ import { Codec, ParticipantInfo, ParticipantPermission } from '@livekit/protocol'; | ||
private publishOrRepublishTrack; | ||
private hasPermissionsToPublish; | ||
private publish; | ||
@@ -130,0 +131,0 @@ get isLocal(): boolean; |
@@ -1,2 +0,2 @@ | ||
import { TrackPublishedResponse } from '@livekit/protocol'; | ||
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol'; | ||
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..'; | ||
@@ -44,2 +44,3 @@ import { Track } from './Track'; | ||
}; | ||
export declare function getTrackSourceFromProto(source: TrackSource): Track.Source; | ||
//# sourceMappingURL=utils.d.ts.map |
{ | ||
"name": "livekit-client", | ||
"version": "2.9.4", | ||
"version": "2.9.5", | ||
"description": "JavaScript/TypeScript client SDK for LiveKit", | ||
@@ -5,0 +5,0 @@ "main": "./dist/livekit-client.umd.js", |
@@ -87,2 +87,12 @@ import { DisconnectReason, RequestResponse_Reason } from '@livekit/protocol'; | ||
export class PublishTrackError extends LivekitError { | ||
status: number; | ||
constructor(message: string, status: number) { | ||
super(15, message); | ||
this.name = 'PublishTrackError'; | ||
this.status = status; | ||
} | ||
} | ||
export type RequestErrorReason = | ||
@@ -89,0 +99,0 @@ | Exclude<RequestResponse_Reason, RequestResponse_Reason.OK> |
@@ -1,2 +0,2 @@ | ||
import { TrackPublishedResponse } from '@livekit/protocol'; | ||
import { TrackPublishedResponse, TrackSource } from '@livekit/protocol'; | ||
import type { AudioProcessorOptions, TrackProcessor, VideoProcessorOptions } from '../..'; | ||
@@ -297,1 +297,16 @@ import { cloneDeep } from '../../utils/cloneDeep'; | ||
} | ||
export function getTrackSourceFromProto(source: TrackSource): Track.Source { | ||
switch (source) { | ||
case TrackSource.CAMERA: | ||
return Track.Source.Camera; | ||
case TrackSource.MICROPHONE: | ||
return Track.Source.Microphone; | ||
case TrackSource.SCREEN_SHARE: | ||
return Track.Source.ScreenShare; | ||
case TrackSource.SCREEN_SHARE_AUDIO: | ||
return Track.Source.ScreenShareAudio; | ||
default: | ||
return Track.Source.Unknown; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
6306960
57165