Instance Methods
createCamera
(async) createCamera(data): Promise.<Camera>Creates a camera instance for video streaming. The camera must be associated with a device using Device#setCamera to enable streaming functionality.
Parameters
Name | Type | Description |
---|---|---|
data
|
object | Camera configuration |
type
|
string | Stream type, one of: 'webrtc', 'rtsp', 'hls', 'dash', 'rtmp', 'other' |
options
|
object
<optional> default: {}
|
Stream-specific options passed to Homey |
dataChannel
|
boolean
<optional> default: true
|
Whether the frontend should setup a WebRTC data channel for bidirectional communication (WebRTC streams only). Some cameras don't work with a data channel and some don't work without it. |
acceptInvalidCertificates
|
boolean
<optional> default: false
|
Whether the frontend should accept invalid certificates |
demuxer
|
string
<optional> |
The demuxer to use for the stream. If null, the default demuxer will be used. This is only used for raw streams. Can be one of 'h264', 'h265', 'mpegts' or 'ts' |
|
||
|
Returns
A configured camera instance