4 Player
(require video/player) | package: video-unstable |
VidLang comes with a player to quickly preview videos before the final render. You can access it from DrRacket with the Preview Video button. It appears next to the run button when a VidLang file is open. Alternatively, you can use raco video -p <file.vid> from the command line.
Several of the features of the video preview are disabled. This is because they are unstable and not yet ready for release. They should be available in the next version of Video, or in the latest unstable build.
procedure
(preview data) → (is-a?/c video-player%)
data : producer?
data is the producer that the video player will render.
|
superclass: frame% |
constructor
(new video-player% [video video]) → (is-a?/c video-player%)
video : video? Constructs a video player object. This does not automatically show the video or start the video playback. Use show and play, or consider using preview instead.video is the initial video associated with the player. This can be changed with set-video.
method
(send a-video-player get-video-length)
→ exact-nonnegative-integer?
method
(send a-video-player is-stopped?) → boolean?
method
frame : exact-nonnegative-integer?
method
(send a-video-player fast-forward) → void?
method
(send a-video-player get-position) → exact-positive-integer?
|
superclass: object% |
method
(send a-video-player-server set-canvas c) → void?
c : canvas?
method
(send a-video-player-server get-video-length)
→ (and/c real? (>=/c 0))
method
(send a-video-player-server is-paused?) → boolean?
method
(send a-video-player-server get-status)
→
(or/c 'playing 'paused 'rewinding 'fast-forwarding 'playing-slow 'stopped)
method
(send a-video-player-server is-stopped?) → boolean?
method
(send a-video-player-server fast-forward) → void?
method
(send a-video-player-server render-audio render?) → void?
render? : boolean?
method
(send a-video-player-server render-video render?) → void?
render? : boolean?