Options
All
  • Public
  • Public/Protected
  • All
Menu

A fragment selector implementing the Media fragment selector as specified by https://www.w3.org/TR/media-frags/ Note: only temporal selector with seconds as units are supported

Hierarchy

Implemented by

Index

Methods

collapseToEnd

collapseToStart

createRangeSelectorTo

  • Creates a new selector describing the range using this instance as startSelector and the passed value as endSelector. Returns null, if the selector implementation cannot create range selectors or if endSelector type is incompatible with this selector.

    The caller must guarantee that endSelector is after this selector. The implementation will not check that endSelector is after this selector.

    Parameters

    Returns MediaFragmentSelector

getFragmentSpecificationIri

  • getFragmentSpecificationIri(): string

getRefinementSelectors

getTimeInterval

  • Returns the time interval component, if any.

    Returns ITimeInterval

getType

getValue

  • getValue(): string

isRangeSelector

  • isRangeSelector(): boolean

toJSON

toString

  • toString(): string
  • Get this selector as string that can be used as the fragment component of an URL. For FragmentSelectors, this will always be the value of FragmentSelector. For other selectors, the serialization algorithm defined by Selectors And States is used.

    Returns string

Generated using TypeDoc