FileMp4InputNode class

Signature:

export declare class FileMp4InputNode extends SourceMediaNode

Extends: SourceMediaNode

Methods

Method Modifiers Description

nudge(nudge)

Applies a gradual nudge to the outgoing stream timestamps by the specified number of milliseconds

pause(options)

Pause the MP4 playback. This may not take fully immediate effect, frames already in flight within the Mp4Input workflow will still be emitted

play()

Start/resume the MP4 playback

playUntil(offsetMs)

Start MP4 playback, pausing once the given offset is reached

seek(offsetMs)

Seek to a given point, without starting playback. When the stream is played/resumed, it will start from (about) this offset

setMediaSpeed(speed)

Change the trick-play media speed at runtime. speed must be greater than 0; values greater than 1 fast-forward, less than 1 slow-motion, and 1 restores normal playback. See FileMp4InputSettings.mediaSpeed.

updateSettings(settings)