VideoWithURL

The VideoWithURL class represents a video stream that can be viewed through Homey. It provides functionality to implement various video streaming protocols such as RTSP, RTMP, HLS, and DASH. Do not use this class directly.

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.