@daily-co/daily-js
Advanced tools
Comparing version 0.18.0 to 0.19.0
@@ -53,2 +53,5 @@ // Type definitions for daily-js | ||
| 'recording-data' | ||
| 'transcription-started' | ||
| 'transcription-stopped' | ||
| 'transcription-error' | ||
| 'app-message' | ||
@@ -82,3 +85,5 @@ | 'local-screen-share-started' | ||
| 'theme-updated' | ||
| 'receive-settings-updated'; | ||
| 'receive-settings-updated' | ||
| 'input-settings-updated' | ||
| 'show-local-video-changed'; | ||
@@ -106,2 +111,4 @@ export type DailyMeetingState = | ||
export type DailyNetworkTopology = 'sfu' | 'peer'; | ||
export interface DailyParticipantsObject { | ||
@@ -198,7 +205,8 @@ local: DailyParticipant; | ||
subscribeToTracksAutomatically?: boolean; | ||
videoSource?: string | MediaStreamTrack; | ||
audioSource?: string | MediaStreamTrack; | ||
videoSource?: string | MediaStreamTrack | boolean; | ||
audioSource?: string | MediaStreamTrack | boolean; | ||
theme?: DailyThemeConfig; | ||
layoutConfig?: DailyLayoutConfig; | ||
receiveSettings?: DailyReceiveSettings; | ||
inputSettings?: DailyInputSettings; | ||
} | ||
@@ -460,2 +468,13 @@ | ||
export interface DailyInputSettings { | ||
video?: DailyInputVideoSettings; | ||
} | ||
export interface DailyInputVideoSettings { | ||
processor?: DailyInputVideoProcessorSettings; | ||
} | ||
export interface DailyInputVideoProcessorSettings { | ||
type: 'none' | 'background-blur' | 'background-image' | 'custom'; | ||
config: {}; | ||
} | ||
export interface DailyEventObjectNoPayload { | ||
@@ -636,2 +655,11 @@ action: Extract< | ||
export interface DailyEventObjectShowLocalVideoChanged { | ||
action: Extract<DailyEvent, 'show-local-video-changed'>; | ||
show: boolean; | ||
} | ||
export interface DailyEventObjectInputSettingsUpdated { | ||
action: Extract<DailyEvent, 'input-settings-updated'>; | ||
inputSettings: DailyInputSettings; | ||
} | ||
export type DailyEventObject< | ||
@@ -681,2 +709,6 @@ T extends DailyEvent = any | ||
? DailyEventObjectReceiveSettingsUpdated | ||
: T extends DailyEventObjectShowLocalVideoChanged['action'] | ||
? DailyEventObjectShowLocalVideoChanged | ||
: T extends DailyEventObjectInputSettingsUpdated['action'] | ||
? DailyEventObjectInputSettingsUpdated | ||
: any; | ||
@@ -726,6 +758,17 @@ | ||
export type DailyStreamingPortraitLayoutVariant = | ||
| 'vertical' | ||
| 'inset'; | ||
export interface DailyStreamingPortraitLayoutConfig { | ||
preset: 'portrait'; | ||
variant?: DailyStreamingPortraitLayoutVariant; | ||
max_cam_streams?: number; | ||
} | ||
export type DailyStreamingLayoutConfig = | ||
| DailyStreamingDefaultLayoutConfig | ||
| DailyStreamingSingleParticipantLayoutConfig | ||
| DailyStreamingActiveParticipantLayoutConfig; | ||
| DailyStreamingActiveParticipantLayoutConfig | ||
| DailyStreamingPortraitLayoutConfig; | ||
@@ -746,2 +789,13 @@ export type DailyAccess = 'unknown' | SpecifiedDailyAccess; | ||
export interface DailyStreamingOptions { | ||
width?: number; | ||
height?: number; | ||
backgroundColor?: string; | ||
layout?: DailyStreamingLayoutConfig; | ||
} | ||
export interface DailyLiveStreamingOptions extends DailyStreamingOptions { | ||
rtmpUrl: string; | ||
} | ||
export interface DailyCall { | ||
@@ -790,2 +844,6 @@ iframe(): HTMLIFrameElement | null; | ||
): Promise<DailyReceiveSettings>; | ||
updateInputSettings( | ||
inputSettings: DailyInputSettings | ||
): Promise<DailyInputSettings>; | ||
getInputSettings(): Promise<DailyInputSettings>; | ||
setBandwidth(bw: { | ||
@@ -828,19 +886,10 @@ kbs?: number | 'NO_CAP' | null; | ||
stopScreenShare(): void; | ||
startRecording(options?: { | ||
width?: number; | ||
height?: number; | ||
backgroundColor?: string; | ||
layout?: DailyStreamingLayoutConfig; | ||
}): void; | ||
startRecording(options?: DailyStreamingOptions): void; | ||
updateRecording(options: { layout?: DailyStreamingLayoutConfig }): void; | ||
stopRecording(): void; | ||
startLiveStreaming(options: { | ||
rtmpUrl: string; | ||
width?: number; | ||
height?: number; | ||
backgroundColor?: string; | ||
layout?: DailyStreamingLayoutConfig; | ||
}): void; | ||
startLiveStreaming(options: DailyLiveStreamingOptions): void; | ||
updateLiveStreaming(options: { layout?: DailyStreamingLayoutConfig }): void; | ||
stopLiveStreaming(): void; | ||
startTranscription(): void; | ||
stopTranscription(): void; | ||
getNetworkStats(): Promise<DailyNetworkStats>; | ||
@@ -871,4 +920,8 @@ getActiveSpeaker(): { peerId?: string }; | ||
geo(): Promise<{ current: string }>; | ||
getNetworkTopology(): Promise<{ | ||
topology: DailyNetworkTopology | 'none'; | ||
error?: string; | ||
}>; | ||
setNetworkTopology(options: { | ||
topology: 'sfu' | 'peer'; | ||
topology: DailyNetworkTopology; | ||
}): Promise<{ workerId?: string; error?: string }>; | ||
@@ -875,0 +928,0 @@ setPlayNewParticipantSound(sound: boolean | number): void; |
{ | ||
"name": "@daily-co/daily-js", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=10.0.0" |
@@ -81,2 +81,6 @@ // | ||
export const DAILY_EVENT_TRANSCRIPTION_STARTED = 'transcription-started'; | ||
export const DAILY_EVENT_TRANSCRIPTION_STOPPED = 'transcription-stopped'; | ||
export const DAILY_EVENT_TRANSCRIPTION_ERROR = 'transcription-error'; | ||
export const DAILY_EVENT_RECORDING_STARTED = 'recording-started'; | ||
@@ -91,2 +95,3 @@ export const DAILY_EVENT_RECORDING_STOPPED = 'recording-stopped'; | ||
export const DAILY_EVENT_INPUT_EVENT = 'input-event'; | ||
export const DAILY_EVENT_LOCAL_SCREEN_SHARE_STARTED = | ||
@@ -115,4 +120,10 @@ 'local-screen-share-started'; | ||
export const DAILY_EVENT_INPUT_SETTINGS_UPDATED = 'input-settings-updated'; | ||
export const DAILY_EVENT_NONFATAL_ERROR = 'nonfatal-error'; | ||
export const DAILY_INPUT_SETTINGS_ERROR_TYPE = 'input-settings-error'; | ||
export const DAILY_VIDEO_PROCESSOR_ERROR_TYPE = 'video-processor-error'; | ||
export const DAILY_EVENT_ERROR = 'error'; | ||
export const DAILY_EVENT_MEDIA_INGEST_ERROR = 'media-ingest-error'; | ||
// | ||
@@ -163,2 +174,3 @@ // internal | ||
export const DAILY_METHOD_ROOM = 'lib-room-info'; | ||
export const DAILY_METHOD_GET_NETWORK_TOPOLOGY = 'get-network-topology'; | ||
export const DAILY_METHOD_SET_NETWORK_TOPOLOGY = 'set-network-topology'; | ||
@@ -174,2 +186,4 @@ export const DAILY_METHOD_SET_PLAY_DING = 'daily-method-set-play-ding'; | ||
'daily-method-stop-live-streaming'; | ||
export const DAILY_METHOD_START_TRANSCRIPTION = 'daily-method-start-transcription'; | ||
export const DAILY_METHOD_STOP_TRANSCRIPTION = 'daily-method-stop-transcription'; | ||
export const DAILY_METHOD_PREAUTH = 'daily-method-preauth'; | ||
@@ -184,2 +198,3 @@ export const DAILY_METHOD_REQUEST_ACCESS = 'daily-method-request-access'; | ||
export const DAILY_METHOD_UPDATE_RECEIVE_SETTINGS = 'update-receive-settings'; | ||
export const DAILY_METHOD_UPDATE_INPUT_SETTINGS = 'update-input-settings'; | ||
@@ -201,1 +216,9 @@ export const DAILY_CUSTOM_TRACK = 'daily-custom-track'; | ||
}; | ||
// video processor settings enum | ||
export const DAILY_JS_VIDEO_PROCESSOR_TYPES = { | ||
NONE: 'none', | ||
BGBLUR: 'background-blur', | ||
// BGIMAGE: 'background-image', | ||
// CUSTOM: 'custom', | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
474864
5975