InputStream

Video streaming utility.

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

close
void close()

Close the video stream.

open
bool open(in string path, InputStreamType type = InputStreamType.FILE)

Open the video stream.

readFrame
bool readFrame(ref Image image)

Read the next framw.

seekFrame
void seekFrame(size_t frame)

Seek the video timeline to given frame index.

seekTime
void seekTime(double time)

Seek the video timeline to given time.

Properties

frameCount
auto frameCount [@property getter]

Get number of frames in video.

frameRate
auto frameRate [@property getter]

Get frame rate of the stream.

frameSize
auto frameSize [@property getter]

Get size of frame in bytes.

height
auto height [@property getter]

Get height of the video frame.

isFileStream
auto isFileStream [@property getter]

Check if this stream is the file stream.

isLiveStream
auto isLiveStream [@property getter]

Check if this stream is the live stream.

isOpen
auto isOpen [@property getter]

Check if stream is open.

streamIndex
auto streamIndex [@property getter]

Get the index of the stream - most commonly is 0, where audio stream is 1.

width
auto width [@property getter]

Get width of the video frame.

Meta