Constructor
VideoDASH
new VideoDASH()Example
Creating a DASH camera stream
// In your device.js file
async onInit() {
const video = await this.homey.videos.createVideoDASH();
video.registerVideoUrlListener(async () => {
return { url: `http://${this.getSetting('ip')}/stream.mpd` };
});
await this.setCameraVideo('front_door', 'Front Door', video);
}
Extends
Instance Methods
registerVideoUrlListener
registerVideoUrlListener(listener): VideoWithURLRegister a listener for video URL requests. This is invoked when Homey requests the video stream URL.
Parameters
Name | Type | Description |
---|---|---|
listener
|
function | Function that returns the video
stream URL object (eg. |
Returns
unregister
(async) unregister()Unregister the video. This is a shorthand method for ManagerVideos#unregisterVideo.