VideoOther

The VideoOther class represents a video stream that can be viewed through Homey using OTHER.

Constructor

VideoOther

new VideoOther()

Example

Creating an 'other' camera stream

// In your device.js file
async onInit() {
  const video = await this.homey.videos.createVideoOther();

  video.registerVideoUrlListener(async () => {
    return { url: `https://${this.getSetting('ip')}/stream.mp4` };
  });

  await this.setCameraVideo('front_door', 'Front Door', video);
}

Extends

Instance Methods

registerVideoUrlListener

registerVideoUrlListener(listener): VideoWithURL

Register 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. { url: 'rtsp://...' }).

Returns

unregister

(async) unregister()

Unregister the video. This is a shorthand method for ManagerVideos#unregisterVideo.