ov_set_video_data | R Documentation |
This function stores an R data object (data frame, list, etc) within a metadata tag inside a video file. This is primarily intended to store video-specific information, so that this information is carried with the video file itself. By default the ov_court_info
metadata tag is used (intended to store the geometry of the playing court in the video, see Examples).
ov_set_video_data(
video_file,
obj,
tag = "ov_court_info",
b64 = TRUE,
replace = FALSE,
overwrite = FALSE
)
video_file |
string: path to the video file |
obj |
: data object to store, typically a list as returned by |
tag |
string: the tag name to use |
b64 |
logical: serialize |
replace |
logical: if |
overwrite |
logical: if |
The path to the video file
ov_get_video_data()
, ov_set_video_meta()
## Not run:
if (interactive()) {
## mark the geometry of the court in the video
ref <- ov_shiny_court_ref(video_file = ov_example_video(), t = 5)
## store it
newfile <- ov_set_video_data(ov_example_video(), obj = ref)
## retrieve it
ov_get_video_data(newfile)
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.