Scrypted Documentation / VideoRecorder
Interface: VideoRecorder
Properties
recordingActive?
optionalrecordingActive:boolean
Methods
getRecordingStream()
getRecordingStream(
options,recordingStream?):Promise<MediaObject>
Returns a MediaObject for a recording stream.
Parameters
• options: RequestRecordingStreamOptions
Options that denote where to start the recording stream. If a duration is specified, a downloadable stream will be returned. If a duration is not specified, a playback stream will be returned.
• recordingStream?: MediaObject
Optionally provide a previously returned recording stream to seek to a new position within that stream. If the seek is successful, the previous MediaObject will update its playback position and no MediaObject will be returned.
Returns
Promise<MediaObject>
getRecordingStreamCurrentTime()
getRecordingStreamCurrentTime(
recordingStream):Promise<number>
Parameters
• recordingStream: MediaObject
Returns
Promise<number>
getRecordingStreamOptions()
getRecordingStreamOptions():
Promise<ResponseMediaStreamOptions[]>
Returns
Promise<ResponseMediaStreamOptions[]>
getRecordingStreamThumbnail()
getRecordingStreamThumbnail(
time,options?):Promise<MediaObject>
Parameters
• time: number
• options?: RecordingStreamThumbnailOptions
Returns
Promise<MediaObject>
