@pexip/media-control 17.2.0 → 17.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.mjs +7 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 17.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7b29d953: Update babel/traverse related deps
|
|
8
|
+
- 821d9a1ef8: Add toMediaDeviceInfo util function
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies [7b29d953]
|
|
13
|
+
- @pexip/utils@16.9.0
|
|
14
|
+
|
|
3
15
|
## 17.2.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/index.d.ts
CHANGED
|
@@ -317,6 +317,12 @@ declare const deviceChanged: (fn: (event: DeviceChangedChanges) => void) => () =
|
|
|
317
317
|
* @beta
|
|
318
318
|
*/
|
|
319
319
|
declare const toMediaDeviceInfoLike: (track: MediaStreamTrack) => MediaDeviceInfoLike | undefined;
|
|
320
|
+
declare const toMediaDeviceInfo: (info: MediaDeviceInfoLike) => {
|
|
321
|
+
deviceId: string;
|
|
322
|
+
groupId: string;
|
|
323
|
+
kind: MediaDeviceKind;
|
|
324
|
+
label: string;
|
|
325
|
+
};
|
|
320
326
|
/**
|
|
321
327
|
* Find the MediaDeviceInfo from provided MediaDeviceInfo[] by comparing with
|
|
322
328
|
* provided MediaStreamTrack
|
|
@@ -1016,4 +1022,4 @@ interface MediaControl {
|
|
|
1016
1022
|
subscribe: typeof subscribe;
|
|
1017
1023
|
}
|
|
1018
1024
|
|
|
1019
|
-
export { CURSOR_CAPTURE_CONSTRAINT, CursorCaptureConstraint, DISPLAY_CAPTURE_SURFACE_TYPE, DeviceChangedChanges, DisplayCaptureSurfaceType, DisplayMediaOptions, Events, FacingMode, INCLUDE_EXCLUDE_CONSTRAINT, IncludeExcludeConstraint, InputConstraintSet, InputDevicePermission, MediaControl, MediaDeviceFailure, MediaDeviceInfoLike, MediaDeviceKinds, MediaDeviceRequest, MediaEvent, MediaEventType, MediaInput, MediaStreamTrackLike, StreamTrackEventHandlers, Unsubscribe, applyConstraints, areMultipleFacingModeSupported, areTracksEnabled, compareDevices, createStreamTrackEventSubscriptions, createTrackDevicesChanges, deviceChanged, extractConstraintsWithKeys, findAudioInputDevices, findAudioOutputDevices, findCurrentAudioOutputId, findCurrentVideoInputDeviceIdFromStream, findDevice, findDeviceFromConstraints, findDeviceWithDeviceId, findDevicesByKind, findMediaInputFromMediaStreamTrack, findMediaInputFromStream, findPermissionGrantedDevices, findVideoInputDevices, getDevices, getFacingModeFromConstraintString, getInputDevicePermissionState, getUserMedia, getValueFromConstrainNumber, hasAnyGrantedInput, hasAnyInputs, hasAudioInputs, hasAudioOrVideoInputs, hasChangedInput, hasRequestingDevice, hasVideoInputs, interpretCurrentFacingMode, isAudioInput, isAudioOutput, isDeviceGranted, isExactDeviceConstraint, isFacingMode, isMediaDeviceInfo, isMediaDeviceInfoArray, isMediaStreamTrack, isRequestedInputDevice, isRequestedInputTrack, isRequestedResolution, isStreamingRequestedDevices, isStreamingRequestedDevicesBase, isVideoInput, limitSharingMonitorInterface, mergeConstraints, muteStreamTrack, relaxInputConstraint, setDefaultConstraints, setLogger, shouldRequestDevice, stopMediaStream, subscribe, toKey, toMediaDeviceInfoLike };
|
|
1025
|
+
export { CURSOR_CAPTURE_CONSTRAINT, CursorCaptureConstraint, DISPLAY_CAPTURE_SURFACE_TYPE, DeviceChangedChanges, DisplayCaptureSurfaceType, DisplayMediaOptions, Events, FacingMode, INCLUDE_EXCLUDE_CONSTRAINT, IncludeExcludeConstraint, InputConstraintSet, InputDevicePermission, MediaControl, MediaDeviceFailure, MediaDeviceInfoLike, MediaDeviceKinds, MediaDeviceRequest, MediaEvent, MediaEventType, MediaInput, MediaStreamTrackLike, StreamTrackEventHandlers, Unsubscribe, applyConstraints, areMultipleFacingModeSupported, areTracksEnabled, compareDevices, createStreamTrackEventSubscriptions, createTrackDevicesChanges, deviceChanged, extractConstraintsWithKeys, findAudioInputDevices, findAudioOutputDevices, findCurrentAudioOutputId, findCurrentVideoInputDeviceIdFromStream, findDevice, findDeviceFromConstraints, findDeviceWithDeviceId, findDevicesByKind, findMediaInputFromMediaStreamTrack, findMediaInputFromStream, findPermissionGrantedDevices, findVideoInputDevices, getDevices, getFacingModeFromConstraintString, getInputDevicePermissionState, getUserMedia, getValueFromConstrainNumber, hasAnyGrantedInput, hasAnyInputs, hasAudioInputs, hasAudioOrVideoInputs, hasChangedInput, hasRequestingDevice, hasVideoInputs, interpretCurrentFacingMode, isAudioInput, isAudioOutput, isDeviceGranted, isExactDeviceConstraint, isFacingMode, isMediaDeviceInfo, isMediaDeviceInfoArray, isMediaStreamTrack, isRequestedInputDevice, isRequestedInputTrack, isRequestedResolution, isStreamingRequestedDevices, isStreamingRequestedDevicesBase, isVideoInput, limitSharingMonitorInterface, mergeConstraints, muteStreamTrack, relaxInputConstraint, setDefaultConstraints, setLogger, shouldRequestDevice, stopMediaStream, subscribe, toKey, toMediaDeviceInfo, toMediaDeviceInfoLike };
|
package/dist/index.mjs
CHANGED
|
@@ -858,6 +858,12 @@ var toMediaDeviceInfoLikeJSON = (info) => ({
|
|
|
858
858
|
label: info.label,
|
|
859
859
|
settings: info.settings
|
|
860
860
|
});
|
|
861
|
+
var toMediaDeviceInfo = (info) => ({
|
|
862
|
+
deviceId: info.deviceId,
|
|
863
|
+
groupId: info.groupId,
|
|
864
|
+
kind: info.kind,
|
|
865
|
+
label: info.label
|
|
866
|
+
});
|
|
861
867
|
var findMediaInputFromMediaStreamTrack = (devices) => (track) => {
|
|
862
868
|
if (!devices.length || !track) {
|
|
863
869
|
return void 0;
|
|
@@ -1695,5 +1701,6 @@ export {
|
|
|
1695
1701
|
stopMediaStream,
|
|
1696
1702
|
subscribe,
|
|
1697
1703
|
toKey,
|
|
1704
|
+
toMediaDeviceInfo,
|
|
1698
1705
|
toMediaDeviceInfoLike
|
|
1699
1706
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pexip/media-control",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0",
|
|
4
4
|
"homepage": "https://gitlab.com/pexip/zoo",
|
|
5
5
|
"bugs": "https://gitlab.com/pexip/zoo/issues",
|
|
6
6
|
"repository": {
|
|
@@ -26,18 +26,18 @@
|
|
|
26
26
|
"typecheck": "yarn tsc --noEmit -p tsconfig.build.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@pexip/utils": "16.
|
|
29
|
+
"@pexip/utils": "16.9.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@jest/globals": "^29.
|
|
33
|
-
"@pexip/bundler": "16.
|
|
32
|
+
"@jest/globals": "^29.7.0",
|
|
33
|
+
"@pexip/bundler": "16.5.0",
|
|
34
34
|
"@types/core-js": "^2.5.3",
|
|
35
35
|
"@types/prettier": "^2.0.2",
|
|
36
36
|
"@types/uuid": "^8.3.0",
|
|
37
37
|
"@types/webrtc": "^0.0.31",
|
|
38
38
|
"core-js": "^3.6.5",
|
|
39
39
|
"prettier": "^3.0.3",
|
|
40
|
-
"typescript": "~5.
|
|
40
|
+
"typescript": "~5.3.0",
|
|
41
41
|
"uuid": "^9.0.0"
|
|
42
42
|
},
|
|
43
43
|
"publishConfig": {
|