get_file_duration {databraryr}R Documentation

Get Duration (In ms) Of A File.

Description

Get Duration (In ms) Of A File.

Usage

get_file_duration(
  asset_id = 1,
  types_w_durations = c("-600", "-800"),
  vb = options::opt("vb"),
  rq = NULL
)

Arguments

asset_id

Asset number.

types_w_durations

Asset types that have valid durations.

vb

Show verbose messages. (Defaults to FALSE, overwritable using option 'databraryr.vb' or environment variable 'R_DATABRARYR_VB')

rq

An httr2 request object. Default is NULL.

Value

Duration of a file in ms.

Examples


get_file_duration() # default is the test video from databrary.org/volume/1



[Package databraryr version 0.6.6 Index]