release: Release a video stream

Description Usage Arguments Details Value See Also Examples

Description

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

Usage

1
release(stream)

Arguments

stream

The vpVideo or vpStream object to release.

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.

Value

This function does not return anything.

See Also

readStream, vpStream, vpVideo

Examples

1
2
3
4
stream <- readStream(0)
frame <- nextFrame(stream)
imshow(frame)
release(stream)

swarm-lab/videoplayR documentation built on May 30, 2019, 9:36 p.m.