ov_get_video_data: Retrieve a data object stored in a video file metadata tag

View source: R/tags.R

ov_get_video_dataR Documentation

Retrieve a data object stored in a video file metadata tag

Description

Retrieve a data object stored in a video file metadata tag

Usage

ov_get_video_data(video_file, tag = "ov_court_info", b64 = TRUE)

Arguments

video_file

string: path to the video file

tag

string: the tag name to use

b64

logical: was obj serialized and base64-encoded before storing?

Value

The stored information, or NULL if there was none

See Also

ov_set_video_data()

Examples

## 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)

openvolley/ovideo documentation built on March 19, 2024, 9:52 p.m.