play | R Documentation |
A very basic video player. Press the space bar to pause and ESC to close. Note that you need X11 library to use this function.
play(vid, loop = FALSE, delay = 30L, normalise = TRUE)
vid |
A cimg object, to be played as video |
loop |
loop the video (default false) |
delay |
delay between frames, in ms. Default 30. |
normalise |
if true pixel values are rescaled to 0...255 (default TRUE). The normalisation is based on the *first frame*. If you don't want the default behaviour you can normalise by hand. Default TRUE. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.