VideoPlay
VideoPlay[video]
returns a new VideoStream object from video and starts the playback.
VideoPlay[vstream]
starts playing a VideoStream object vstream.
Details and Options
- VideoPlay can be used to perform programmatic video playback.
- VideoPlay will continually change the "Position" property of vstream starting from the current position.
- VideoPlay by default plays the entire stream until paused, stopped or finished.
- The following option can be specified:
-
Looping Automatic whether to loop the playback - VideoPlay continues to play until either MaxDuration is reached or the maximum number of loops is played.
Examples
open allclose allBasic Examples (1)
Create a VideoStream object linking to a local video file:
Scope (3)
Play a VideoStream:
Create a VideoStream from a Video object and immediately play it:
Create two separate streams from a Video object:
The two streams are independent. Play one video 0.5 seconds after the beginning of the other one:
Options (1)
Applications (4)
Apply a neural networks–based function to the current frame in real time:
Highlight the results of ImageCases dynamically:
Apply an image processing function dynamically to the current frame:
Compute the result of ImageSaliencyFilter:
Make a dynamic visualization of a video stream:
Display the Spectrogram of the current audio using a color function based on the dominant colors of the current frame:
Text
Wolfram Research (2020), VideoPlay, Wolfram Language function, https://reference.wolfram.com/language/ref/VideoPlay.html.
CMS
Wolfram Language. 2020. "VideoPlay." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/VideoPlay.html.
APA
Wolfram Language. (2020). VideoPlay. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/VideoPlay.html