Skip to contents

Get Time Range For An Asset.

Usage

get_asset_segment_range(
  vol_id = 1,
  session_id = 9807,
  asset_id = 1,
  convert_JSON = TRUE,
  segment_only = TRUE,
  vb = options::opt("vb"),
  rq = NULL
)

Arguments

vol_id

Volume ID

session_id

Slot/session number.

asset_id

Asset number.

convert_JSON

A Boolean value. If TRUE, convert JSON to a data frame. Default is TRUE.

segment_only

A Boolean value. If TRUE, returns only the segment values. Otherwise returns a data frame with two fields, segment and permission. Default is TRUE.

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

The time range (in ms) for an asset, if one is indicated.

Examples

# \donttest{
get_asset_segment_range()
#> [1]     0 40000
# }