Scrypted Documentation / RTCSignalingSession
Interface: RTCSignalingSession
Implemented by WebRTC cameras to negotiate a peer connection session with Scrypted.
Properties
__proxy_props
__proxy_props:
object
options
options:
RTCSignalingOptions
options
options:
RTCSignalingOptions
Methods
createLocalDescription()
createLocalDescription(
type
,setup
,sendIceCandidate
):Promise
<RTCSessionDescriptionInit
>
Parameters
• type: "answer"
| "offer"
• setup: RTCAVSignalingSetup
• sendIceCandidate: undefined
| RTCSignalingSendIceCandidate
Returns
Promise
<RTCSessionDescriptionInit
>
setRemoteDescription()
setRemoteDescription(
description
,setup
):Promise
<void
>
Parameters
• description: RTCSessionDescriptionInit
• setup: RTCAVSignalingSetup
Returns
Promise
<void
>
addIceCandidate()
addIceCandidate(
candidate
):Promise
<void
>
Parameters
• candidate: RTCIceCandidateInit
Returns
Promise
<void
>
getOptions()
getOptions():
Promise
<RTCSignalingOptions
>
Returns
Promise
<RTCSignalingOptions
>