@scrypted/types
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -1321,5 +1321,15 @@ /// <reference types="node" /> | ||
HumiditySetting = "HumiditySetting", | ||
Fan = "Fan" | ||
Fan = "Fan", | ||
RTCSignalingChannel = "RTCSignalingChannel" | ||
} | ||
export interface RTCAVSignalingOfferSetup { | ||
export declare type RTCSignalingSendIceCandidate = (candidate: RTCIceCandidate) => Promise<void>; | ||
export interface RTCSignalingSession { | ||
createLocalDescription: (type: 'offer' | 'answer', setup: RTCAVSignalingSetup, sendIceCandidate: undefined | RTCSignalingSendIceCandidate) => Promise<RTCSessionDescription>; | ||
setRemoteDescription: (description: RTCSessionDescription) => Promise<void>; | ||
onIceCandidate: (candidate: RTCIceCandidate) => void; | ||
} | ||
export interface RTCSignalingChannel { | ||
startRTCSignalingSession(session: RTCSignalingSession): Promise<void>; | ||
} | ||
export interface RTCAVSignalingSetup { | ||
audio: RTCRtpTransceiverInit; | ||
@@ -1331,3 +1341,3 @@ video: RTCRtpTransceiverInit; | ||
}; | ||
signalingMimeType: string; | ||
type: 'offer' | 'answer'; | ||
} | ||
@@ -1334,0 +1344,0 @@ export interface RTCAVMessage { |
@@ -544,2 +544,9 @@ "use strict"; | ||
] | ||
}, | ||
RTCSignalingChannel: { | ||
name: 'RTCSignalingChannel', | ||
methods: [ | ||
'startRTCSignalingSession' | ||
], | ||
properties: [] | ||
} | ||
@@ -680,2 +687,3 @@ }; | ||
ScryptedInterface["Fan"] = "Fan"; | ||
ScryptedInterface["RTCSignalingChannel"] = "RTCSignalingChannel"; | ||
})(ScryptedInterface = exports.ScryptedInterface || (exports.ScryptedInterface = {})); | ||
@@ -682,0 +690,0 @@ var ScryptedMimeTypes; |
25
index.ts
@@ -647,2 +647,9 @@ | ||
] | ||
}, | ||
RTCSignalingChannel: { | ||
name: 'RTCSignalingChannel', | ||
methods: [ | ||
'startRTCSignalingSession' | ||
], | ||
properties: [] | ||
} | ||
@@ -1930,6 +1937,18 @@ } | ||
Fan = "Fan", | ||
RTCSignalingChannel = "RTCSignalingChannel", | ||
} | ||
export type RTCSignalingSendIceCandidate = (candidate: RTCIceCandidate) => Promise<void>; | ||
export interface RTCSignalingSession { | ||
createLocalDescription: (type: 'offer' | 'answer', setup: RTCAVSignalingSetup, sendIceCandidate: undefined|RTCSignalingSendIceCandidate) => Promise<RTCSessionDescription>; | ||
setRemoteDescription: (description: RTCSessionDescription) => Promise<void>; | ||
onIceCandidate: (candidate: RTCIceCandidate) => void; | ||
} | ||
export interface RTCAVSignalingOfferSetup { | ||
export interface RTCSignalingChannel { | ||
startRTCSignalingSession(session: RTCSignalingSession): Promise<void>; | ||
} | ||
export interface RTCAVSignalingSetup { | ||
audio: RTCRtpTransceiverInit; | ||
@@ -1940,4 +1959,4 @@ video: RTCRtpTransceiverInit; | ||
dict?: RTCDataChannelInit; | ||
}, | ||
signalingMimeType: string; | ||
}; | ||
type: 'offer' | 'answer'; | ||
} | ||
@@ -1944,0 +1963,0 @@ |
{ | ||
"name": "@scrypted/types", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
219997
5141