@videosdk.live/react-sdk
Advanced tools
Comparing version 0.1.83 to 0.1.84
@@ -9,3 +9,8 @@ // Type definitions for @videosdk.live/react-sdk 0.1 | ||
import { Connection } from './connection'; | ||
import { CameraDeviceInfo, DeviceInfo, MicrophoneDeviceInfo, PlaybackDeviceInfo } from './deviceInfo'; | ||
import { | ||
CameraDeviceInfo, | ||
DeviceInfo, | ||
MicrophoneDeviceInfo, | ||
PlaybackDeviceInfo | ||
} from './deviceInfo'; | ||
import { Permission } from './permission'; | ||
@@ -68,3 +73,3 @@ import { Meeting } from './meeting'; | ||
* - This is an OPTIONAL parameter. By default, it is set to false meaning, user has to manually call the join(). | ||
* | ||
* | ||
*/ | ||
@@ -77,3 +82,3 @@ export function MeetingProvider({ | ||
reinitialiseMeetingOnConfigChange: _reinitialiseMeetingOnConfigChange, | ||
deviceInfo, | ||
deviceInfo | ||
}: { | ||
@@ -196,3 +201,3 @@ children: any; | ||
onMeetingStateChanged, | ||
onParticipantModeChanged, | ||
onParticipantModeChanged | ||
}: { | ||
@@ -209,3 +214,3 @@ children: any; | ||
allow, | ||
deny, | ||
deny | ||
}: { | ||
@@ -219,3 +224,3 @@ participantId: string; | ||
participantId, | ||
decision, | ||
decision | ||
}: { | ||
@@ -243,3 +248,3 @@ participantId: string; | ||
accept, | ||
reject, | ||
reject | ||
}: { | ||
@@ -253,3 +258,3 @@ participantId: string; | ||
accept, | ||
reject, | ||
reject | ||
}: { | ||
@@ -263,3 +268,3 @@ participantId: string; | ||
state, | ||
pinnedBy, | ||
pinnedBy | ||
}: { | ||
@@ -280,10 +285,10 @@ participantId: string; | ||
playbackHlsUrl, | ||
livestreamUrl, | ||
livestreamUrl | ||
}: { | ||
status: | ||
| 'HLS_STARTING' | ||
| 'HLS_STARTED' | ||
| 'HLS_PLAYABLE' | ||
| 'HLS_STOPPING' | ||
| 'HLS_STOPPED'; | ||
| 'HLS_STARTING' | ||
| 'HLS_STARTED' | ||
| 'HLS_PLAYABLE' | ||
| 'HLS_STOPPING' | ||
| 'HLS_STOPPED'; | ||
downstreamUrl?: string; | ||
@@ -294,33 +299,33 @@ playbackHlsUrl?: string; | ||
onRecordingStateChanged?: ({ | ||
status, | ||
status | ||
}: { | ||
status: | ||
| 'RECORDING_STARTING' | ||
| 'RECORDING_STARTED' | ||
| 'RECORDING_STOPPING' | ||
| 'RECORDING_STOPPED'; | ||
| 'RECORDING_STARTING' | ||
| 'RECORDING_STARTED' | ||
| 'RECORDING_STOPPING' | ||
| 'RECORDING_STOPPED'; | ||
}) => void; | ||
onLivestreamStateChanged?: ({ | ||
status, | ||
status | ||
}: { | ||
status: | ||
| 'LIVESTREAM_STARTING' | ||
| 'LIVESTREAM_STARTED' | ||
| 'LIVESTREAM_STOPPING' | ||
| 'LIVESTREAM_STOPPED'; | ||
| 'LIVESTREAM_STARTING' | ||
| 'LIVESTREAM_STARTED' | ||
| 'LIVESTREAM_STOPPING' | ||
| 'LIVESTREAM_STOPPED'; | ||
}) => void; | ||
onMeetingStateChanged?: ({ | ||
state, | ||
state | ||
}: { | ||
state: | ||
| 'CONNECTING' | ||
| 'CONNECTED' | ||
| 'FAILED' | ||
| 'DISCONNECTED' | ||
| 'CLOSING' | ||
| 'CLOSED'; | ||
| 'CONNECTING' | ||
| 'CONNECTED' | ||
| 'FAILED' | ||
| 'DISCONNECTED' | ||
| 'CLOSING' | ||
| 'CLOSED'; | ||
}) => void; | ||
onParticipantModeChanged?: ({ | ||
participantId, | ||
mode, | ||
mode | ||
}: { | ||
@@ -349,9 +354,7 @@ participantId: string; | ||
*/ | ||
export function useMediaDevice( | ||
{ | ||
onDeviceChanged, | ||
}?: { | ||
onDeviceChanged?: (devices: Promise<Array<DeviceInfo>>) => void; | ||
}, | ||
): { | ||
export function useMediaDevice({ | ||
onDeviceChanged | ||
}?: { | ||
onDeviceChanged?: (devices: Promise<Array<DeviceInfo>>) => void; | ||
}): { | ||
getDevices: () => Promise<Array<DeviceInfo>>; | ||
@@ -362,3 +365,5 @@ getCameras: () => Promise<Array<CameraDeviceInfo>>; | ||
checkPermissions: (permissions?: Permission) => Promise<Map<string, boolean>>; | ||
requestPermission: (permissions?: Permission) => Promise<Map<string, boolean>>; | ||
requestPermission: ( | ||
permissions?: Permission | ||
) => Promise<Map<string, boolean>>; | ||
}; | ||
@@ -430,3 +435,3 @@ | ||
onMediaStatusChanged, | ||
onVideoQualityChanged, | ||
onVideoQualityChanged | ||
}?: { | ||
@@ -438,3 +443,3 @@ onStreamDisabled?: (stream: Stream) => void; | ||
peerId, | ||
newStatus, | ||
newStatus | ||
}: { | ||
@@ -448,3 +453,3 @@ kind: 'audio' | 'video'; | ||
prevQuality, | ||
currentQuality, | ||
currentQuality | ||
}: { | ||
@@ -455,3 +460,3 @@ peerId: string; | ||
}) => void; | ||
}, | ||
} | ||
): { | ||
@@ -483,3 +488,9 @@ displayName: string; | ||
remove: () => void; | ||
captureImage: ({ height, width }: { height?: number, width?: number }) => Promise<string | null>; | ||
captureImage: ({ | ||
height, | ||
width | ||
}: { | ||
height?: number; | ||
width?: number; | ||
}) => Promise<string | null>; | ||
pin: (data: 'SHARE_AND_CAM' | 'CAM' | 'SHARE') => void; | ||
@@ -490,3 +501,3 @@ unpin: (data: 'SHARE_AND_CAM' | 'CAM' | 'SHARE') => void; | ||
payload, | ||
token, | ||
token | ||
}: { | ||
@@ -648,3 +659,3 @@ meetingId: string; | ||
onMeetingStateChanged, | ||
onParticipantModeChanged, | ||
onParticipantModeChanged | ||
}?: { | ||
@@ -660,3 +671,3 @@ onParticipantJoined?: (participant: Participant) => void; | ||
allow, | ||
deny, | ||
deny | ||
}: { | ||
@@ -670,3 +681,3 @@ participantId: string; | ||
participantId, | ||
decision, | ||
decision | ||
}: { | ||
@@ -694,3 +705,3 @@ participantId: string; | ||
accept, | ||
reject, | ||
reject | ||
}: { | ||
@@ -704,3 +715,3 @@ participantId: string; | ||
accept, | ||
reject, | ||
reject | ||
}: { | ||
@@ -714,3 +725,3 @@ participantId: string; | ||
state, | ||
pinnedBy, | ||
pinnedBy | ||
}: { | ||
@@ -731,10 +742,10 @@ participantId: string; | ||
playbackHlsUrl, | ||
livestreamUrl, | ||
livestreamUrl | ||
}: { | ||
status: | ||
| 'HLS_STARTING' | ||
| 'HLS_STARTED' | ||
| 'HLS_PLAYABLE' | ||
| 'HLS_STOPPING' | ||
| 'HLS_STOPPED'; | ||
| 'HLS_STARTING' | ||
| 'HLS_STARTED' | ||
| 'HLS_PLAYABLE' | ||
| 'HLS_STOPPING' | ||
| 'HLS_STOPPED'; | ||
downstreamUrl?: string; | ||
@@ -745,33 +756,33 @@ playbackHlsUrl?: string; | ||
onRecordingStateChanged?: ({ | ||
status, | ||
status | ||
}: { | ||
status: | ||
| 'RECORDING_STARTING' | ||
| 'RECORDING_STARTED' | ||
| 'RECORDING_STOPPING' | ||
| 'RECORDING_STOPPED'; | ||
| 'RECORDING_STARTING' | ||
| 'RECORDING_STARTED' | ||
| 'RECORDING_STOPPING' | ||
| 'RECORDING_STOPPED'; | ||
}) => void; | ||
onLivestreamStateChanged?: ({ | ||
status, | ||
status | ||
}: { | ||
status: | ||
| 'LIVESTREAM_STARTING' | ||
| 'LIVESTREAM_STARTED' | ||
| 'LIVESTREAM_STOPPING' | ||
| 'LIVESTREAM_STOPPED'; | ||
| 'LIVESTREAM_STARTING' | ||
| 'LIVESTREAM_STARTED' | ||
| 'LIVESTREAM_STOPPING' | ||
| 'LIVESTREAM_STOPPED'; | ||
}) => void; | ||
onMeetingStateChanged?: ({ | ||
state, | ||
state | ||
}: { | ||
state: | ||
| 'CONNECTING' | ||
| 'CONNECTED' | ||
| 'FAILED' | ||
| 'DISCONNECTED' | ||
| 'CLOSING' | ||
| 'CLOSED'; | ||
| 'CONNECTING' | ||
| 'CONNECTED' | ||
| 'FAILED' | ||
| 'DISCONNECTED' | ||
| 'CLOSING' | ||
| 'CLOSED'; | ||
}) => void; | ||
onParticipantModeChanged?: ({ | ||
participantId, | ||
mode, | ||
mode | ||
}: { | ||
@@ -833,3 +844,3 @@ participantId: string; | ||
mode: 'video-and-audio' | 'audio'; | ||
}, | ||
} | ||
) => void; | ||
@@ -849,3 +860,3 @@ stopRecording: () => void; | ||
theme: 'DEFAULT' | 'DARK' | 'LIGHT'; | ||
}, | ||
} | ||
) => void; | ||
@@ -888,3 +899,3 @@ stopLiveStream: () => void; | ||
meetingId, | ||
payload, | ||
payload | ||
}: { | ||
@@ -928,3 +939,3 @@ meetingId: string; | ||
onMessageReceived, | ||
onOldMessagesReceived, | ||
onOldMessagesReceived | ||
}?: { | ||
@@ -949,5 +960,5 @@ onMessageReceived?: (message: { | ||
payload: object; | ||
}>, | ||
}> | ||
) => void; | ||
}, | ||
} | ||
): { | ||
@@ -958,3 +969,3 @@ publish: ( | ||
persist, | ||
sendOnly, | ||
sendOnly | ||
}: { | ||
@@ -964,3 +975,3 @@ persist: boolean; | ||
}, | ||
payload?: object, | ||
payload?: object | ||
) => void; | ||
@@ -979,3 +990,7 @@ messages: Array<{ | ||
export function useFile(): { | ||
uploadBase64File: ({ base64Data, token, fileName }: { | ||
uploadBase64File: ({ | ||
base64Data, | ||
token, | ||
fileName | ||
}: { | ||
base64Data: string; | ||
@@ -986,3 +1001,6 @@ token: string; | ||
fetchBase64File: ({ url, token }: { | ||
fetchBase64File: ({ | ||
url, | ||
token | ||
}: { | ||
url: string; | ||
@@ -993,3 +1011,2 @@ token: string; | ||
/** | ||
@@ -1030,19 +1047,19 @@ * @param microphoneId - It will be the id of the mic from which the audio should be captured. | ||
encoderConfig, | ||
microphoneId, | ||
microphoneId | ||
}: { | ||
noiseConfig?: | ||
| { | ||
echoCancellation: boolean; | ||
autoGainControl: boolean; | ||
noiseSuppression: boolean; | ||
} | ||
| undefined; | ||
| { | ||
echoCancellation: boolean; | ||
autoGainControl: boolean; | ||
noiseSuppression: boolean; | ||
} | ||
| undefined; | ||
encoderConfig?: | ||
| 'speech_low_quality' | ||
| 'speech_standard' | ||
| 'music_standard' | ||
| 'standard_stereo' | ||
| 'high_quality' | ||
| 'high_quality_stereo' | ||
| undefined; | ||
| 'speech_low_quality' | ||
| 'speech_standard' | ||
| 'music_standard' | ||
| 'standard_stereo' | ||
| 'high_quality' | ||
| 'high_quality_stereo' | ||
| undefined; | ||
microphoneId?: string | undefined; | ||
@@ -1090,25 +1107,25 @@ }): Promise<MediaStream>; | ||
optimizationMode, | ||
multiStream, | ||
multiStream | ||
}: { | ||
cameraId?: string | undefined; | ||
encoderConfig?: | ||
| 'h90p_w160p' | ||
| 'h180p_w320p' | ||
| 'h216p_w384p' | ||
| 'h360p_w640p' | ||
| 'h540p_w960p' | ||
| 'h720p_w1280p' | ||
| 'h1080p_w1920p' | ||
| 'h1440p_w2560p' | ||
| 'h2160p_w3840p' | ||
| 'h120p_w160p' | ||
| 'h180p_w240p' | ||
| 'h240p_w320p' | ||
| 'h360p_w480p' | ||
| 'h480p_w640p' | ||
| 'h540p_w720p' | ||
| 'h720p_w960p' | ||
| 'h1080p_w1440p' | ||
| 'h1440p_w1920p' | ||
| undefined; | ||
| 'h90p_w160p' | ||
| 'h180p_w320p' | ||
| 'h216p_w384p' | ||
| 'h360p_w640p' | ||
| 'h540p_w960p' | ||
| 'h720p_w1280p' | ||
| 'h1080p_w1920p' | ||
| 'h1440p_w2560p' | ||
| 'h2160p_w3840p' | ||
| 'h120p_w160p' | ||
| 'h180p_w240p' | ||
| 'h240p_w320p' | ||
| 'h360p_w480p' | ||
| 'h480p_w640p' | ||
| 'h540p_w720p' | ||
| 'h720p_w960p' | ||
| 'h1080p_w1440p' | ||
| 'h1440p_w1920p' | ||
| undefined; | ||
facingMode?: 'user' | 'environment' | undefined; | ||
@@ -1148,11 +1165,11 @@ optimizationMode?: 'text' | 'motion' | 'detail' | undefined; | ||
optimizationMode, | ||
withAudio, | ||
withAudio | ||
}: { | ||
encoderConfig?: | ||
| 'h360p_30fps' | ||
| 'h720p_5fps' | ||
| 'h720p_15fps' | ||
| 'h1080p_15fps' | ||
| 'h1080p_30fps' | ||
| undefined; | ||
| 'h360p_30fps' | ||
| 'h720p_5fps' | ||
| 'h720p_15fps' | ||
| 'h1080p_15fps' | ||
| 'h1080p_30fps' | ||
| undefined; | ||
optimizationMode?: 'text' | 'motion' | 'detail' | undefined; | ||
@@ -1170,3 +1187,3 @@ withAudio?: 'enable' | 'disable'; | ||
* try{ | ||
* const options = { timeoutDuration: 45000 }; | ||
* const options = { timeoutDuration: 45000 }; | ||
* const networkStats = await VideoSDK.getNetworkStats(options); | ||
@@ -1183,6 +1200,4 @@ * console.log("networkStats", networkStats); | ||
}?: { | ||
timeoutDuration?: | ||
| number | ||
| undefined; | ||
}): Promise<{downloadSpeed: number,uploadSpeed: number}>; | ||
timeoutDuration?: number | undefined; | ||
}): Promise<{ downloadSpeed: number; uploadSpeed: number }>; | ||
@@ -1247,1 +1262,2 @@ export const Constants: { | ||
}; | ||
export { CameraDeviceInfo, DeviceInfo, MicrophoneDeviceInfo }; |
{ | ||
"name": "@videosdk.live/react-sdk", | ||
"version": "0.1.83", | ||
"version": "0.1.84", | ||
"license": "ISC", | ||
@@ -76,5 +76,5 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@videosdk.live/js-sdk": "0.0.80", | ||
"@videosdk.live/js-sdk": "0.0.81", | ||
"events": "^3.3.0" | ||
} | ||
} |
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 too big to display
Sorry, the diff of this file is not supported yet
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
468857
5196
+ Added@videosdk.live/js-sdk@0.0.81(transitive)
- Removed@videosdk.live/js-sdk@0.0.80(transitive)
Updated@videosdk.live/js-sdk@0.0.81