ov_video_timing: Timing to use when creating video playlist

View source: R/playlists.R

ov_video_timingR Documentation

Timing to use when creating video playlist

Description

By default, all skills except reception have a timing of c(-5, 3), meaning that the video clip will start 5 seconds before the recorded time of the event and end 3 seconds after its recorded time. Reception has a timing of c(-2, 6) (because reception usually has the same timestamp as the serve)

Usage

ov_video_timing(...)

ov_video_timing_df(x)

Arguments

...

: named parameters that will override the defaults. Each parameter should be a two-element numeric vector

x

data.frame: a data.frame of timings that will override the defaults, with columns skill, phase, start_offset (start offset in seconds, default = -5), and duration (duration in seconds, default = 8)

Details

ov_video_timing_df accepts and returns a data.frame rather than a named list. The data.frame format also allows timings to be differentiated by play phase ("Reception" vs "Transition").

Value

For ov_video_timing a named list, with names corresponding to skills ("Serve", "Reception", etc). For ov_video_timing_df, a data.frame with columns skill, phase, start_offset, and duration

See Also

ov_video_playlist()

Examples


## defaults
ov_video_timing()

## with different settings for serve and reception
ov_video_timing(serve = c(-2, 2), reception = c(-3, 1))

## as data.frame
ov_video_timing_df(data.frame(skill = "Set", phase = "Transition",
                              start_offset = -5, duration = 10))


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