@camera.ui/browser 0.0.191 → 0.0.193
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/dist/index.d.ts +1 -1
- package/dist/index.js +9 -1
- package/package.json +5 -5
package/dist/index.d.ts
CHANGED
|
@@ -883,7 +883,7 @@ export declare interface ReactiveContactSensor extends ReactiveSensor<ContactSen
|
|
|
883
883
|
getProperty(property: string): unknown;
|
|
884
884
|
}
|
|
885
885
|
|
|
886
|
-
export declare interface ReactiveCoreManager extends Omit<CoreManager, 'connectToPlugin' | 'signRequest' | 'onEvent'> {
|
|
886
|
+
export declare interface ReactiveCoreManager extends Omit<CoreManager, 'connectToPlugin' | 'signRequest' | 'onEvent' | 'assistantAsk' | 'assistantAccess'> {
|
|
887
887
|
}
|
|
888
888
|
|
|
889
889
|
export declare interface ReactiveDeviceManager {
|
package/dist/index.js
CHANGED
|
@@ -3051,6 +3051,7 @@ async function processWebRTCMessage(handler, msg) {
|
|
|
3051
3051
|
//#endregion
|
|
3052
3052
|
//#region src/streaming/streamConnection.ts
|
|
3053
3053
|
var log = new Logger("StreamConnection");
|
|
3054
|
+
var MSE_AUDIO_CODEC = /mp4a|opus|flac|mp3/i;
|
|
3054
3055
|
function isVideoInPictureInPicture(video) {
|
|
3055
3056
|
if (!video) return false;
|
|
3056
3057
|
if (typeof document !== "undefined" && "pictureInPictureElement" in document && document.pictureInPictureElement === video) return true;
|
|
@@ -3630,6 +3631,9 @@ var StreamConnection = class {
|
|
|
3630
3631
|
this.markSourceUndecodable();
|
|
3631
3632
|
this.restart();
|
|
3632
3633
|
}
|
|
3634
|
+
noteDeliveredAudio(delivered) {
|
|
3635
|
+
if (delivered && !this.hasAudio.value) this.hasAudio.value = true;
|
|
3636
|
+
}
|
|
3633
3637
|
async probeStream() {
|
|
3634
3638
|
const cam = this.camera.value;
|
|
3635
3639
|
const source = this.source.value;
|
|
@@ -3714,7 +3718,10 @@ var StreamConnection = class {
|
|
|
3714
3718
|
else if (this.backchannelHandler) processWebRTCMessage(this.backchannelHandler, msg);
|
|
3715
3719
|
break;
|
|
3716
3720
|
case "mse":
|
|
3717
|
-
if (this.mseHandler && typeof msg.value === "string")
|
|
3721
|
+
if (this.mseHandler && typeof msg.value === "string") {
|
|
3722
|
+
this.noteDeliveredAudio(MSE_AUDIO_CODEC.test(msg.value));
|
|
3723
|
+
this.mseHandler.initializeBuffer(msg.value);
|
|
3724
|
+
}
|
|
3718
3725
|
break;
|
|
3719
3726
|
case "error": if (this.requestedMode.value !== "auto") {
|
|
3720
3727
|
this.error.value = new Error(msg.value);
|
|
@@ -3750,6 +3757,7 @@ var StreamConnection = class {
|
|
|
3750
3757
|
this.handleWebRTCFailed();
|
|
3751
3758
|
return;
|
|
3752
3759
|
}
|
|
3760
|
+
this.noteDeliveredAudio(stream.getAudioTracks().length > 0);
|
|
3753
3761
|
this.activeMode.value = this.requestedMode.value === "auto" ? "webrtc" : this.requestedMode.value;
|
|
3754
3762
|
this.lastMediaStream = stream;
|
|
3755
3763
|
video.srcObject = stream;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camera.ui/browser",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.193",
|
|
4
4
|
"description": "camera.ui browser client",
|
|
5
5
|
"author": "seydx (https://github.com/cameraui/clients)",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@camera.ui/logger": "file:../../packages/logger",
|
|
41
41
|
"@camera.ui/rpc": "^1.0.12",
|
|
42
|
-
"@camera.ui/sdk": "~1.2.
|
|
42
|
+
"@camera.ui/sdk": "~1.2.39",
|
|
43
43
|
"@camera.ui/transport": "file:../../packages/transport",
|
|
44
44
|
"@eneris/push-receiver": "^4.3.1",
|
|
45
45
|
"@microsoft/api-extractor": "^7.59.1",
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
"@vue/eslint-config-typescript": "^14.9.0",
|
|
52
52
|
"@vue/language-core": "^3.3.11",
|
|
53
53
|
"@vue/tsconfig": "^0.9.1",
|
|
54
|
-
"@vueuse/core": "^
|
|
54
|
+
"@vueuse/core": "^15.0.0",
|
|
55
55
|
"@webgpu/types": "^0.1.72",
|
|
56
56
|
"eslint": "9.39.2",
|
|
57
57
|
"eslint-plugin-vue": "^10.11.0",
|
|
58
58
|
"globals": "^17.12.0",
|
|
59
|
-
"prettier": "^3.9.
|
|
59
|
+
"prettier": "^3.9.7",
|
|
60
60
|
"rimraf": "^6.1.3",
|
|
61
61
|
"typescript": "5.9.3",
|
|
62
62
|
"typescript-eslint": "^8.70.0",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"updates": "^18.1.0",
|
|
65
65
|
"vite": "^8.3.0",
|
|
66
66
|
"vitest": "^5.0.1",
|
|
67
|
-
"vue": "^3.5.
|
|
67
|
+
"vue": "^3.5.43",
|
|
68
68
|
"vue-tsc": "^3.3.11"
|
|
69
69
|
},
|
|
70
70
|
"overrides": {
|