dv_video_playlist: Create video playlist

Description Usage Arguments Value

View source: R/playlists.R

Description

Create video playlist

Usage

1
2
3
4
5
6
7
8
dv_video_playlist(
  x,
  meta,
  type = NULL,
  timing = dv_video_timing(),
  extra_cols = NULL,
  normalize_paths = TRUE
)

Arguments

x

data.frame: a datavolleyplays object. Normally this will be a selected subset of the plays component of a datavolley object (i.e. a selected set of actions that you want the video playlist to contain)

meta

list: either the meta component of a datavolley object, or a list of such objects, or a data.frame with the columns "match_id" and "video_src". Entries in video_src should be paths or URLs to the video file associated with the corresponding match_id

type

string: currently "youtube" or "local". If type is not specified as a parameter, and meta is a data.frame, then type can be provided as a column in meta. Alternatively, if meta is a meta component of a datavolley object, or a list of such objects, then type will be assumed to be "local"

timing

list: a named list giving the relative timing for each skill type. Each element in the list should be named (with the name of the skill, as it appears in x) and should consist of a two-element numeric vector giving the starting and ending time offset relative to the recorded video_time of the event. See dv_video_timing for further details

extra_cols

character: names of additional columns from x to include in the returned data frame

normalize_paths

logical: if TRUE, apply normalizePath to local file paths. This will e.g. expand the tilde in paths like "~/path/to/video.mp4"

Value

A data.frame with columns src, start_time, duration, plus any extras specified in extra_cols


scienceuntangled/dvideo documentation built on March 13, 2020, 6:50 p.m.