Source

Description

This namespace contains different sources that can be used in overlays and underlays

Classes


new BaseSource()


new SubtitlesSource()


new TextSource()


new BaseTextSource()


new ImageSource()


new VideoSource()


new FetchSource()

Methods


<static> image( publicID ) → {Qualifiers.Source.ImageSource}

qualifier

Description

Returns an instance of an ImageSource

Parameters
Name Type Description
publicID string

The publicID of the image to be used as a layer

Details

<static> text( text, textStyle ) → {Qualifiers.Source.TextSource}

qualifier

Description

Returns an instance of a TextSource

Parameters
Name Type Description
text string

The text to display.

textStyle TextStyle | string

The textStyle to use with the text in the layer

Details

<static> video( publicID ) → {Qualifiers.Source.VideoSource}

qualifier

Description

Returns an instance of a VideoSource

Parameters
Name Type Description
publicID string

The publicID of the video to be used as a layer

Details

<static> subtitles( fileName ) → {Qualifiers.Source.VideoSource}

qualifier

Description

Returns an instance of an VideoSource

Parameters
Name Type Description
fileName string

The publicID of the video to be used as a layer

Details

<static> fetch( remoteURL ) → {Qualifiers.Source.FetchSource}

qualifier

Description

Returns an instance of a FetchSource

Parameters
Name Type Description
remoteURL string

The URL of the remote asset to fetch as a layer

Details