Learn R Programming

videoplayR (version 0.3.1)

release: Release a video stream

Description

This function releases (i.e. closes) the video stream contained in a vpVideo or a vpStream object.

Usage

release(stream)

Arguments

stream
The vpVideo or vpStream object to release.

Value

This function does not return anything.

Details

Only the video stream contained in the vpVideo or vpStream object is released (i.e closed). The vpVideo or vpStream object will remain in the session environment until removed by the user. Once released, the video stream cannot be accessed anymore unless a new vpVideo or vpStream object is created.

See Also

readStream, vpStream, vpVideo

Examples

Run this code
stream <- readStream(0)
frame <- nextFrame(stream)
imshow(frame)
release(stream)

Run the code above in your browser using DataLab