new SubtitlesSource()

Description

Defines how to manipulate a Subtitles layer

Methods


textStyle( textStyle )

Description

Set the textStyle for the subtitles layer

Parameters
Name Type Description
textStyle TextStyle

encodeText( text )

Description

Used within getOpenSourceString of TextSource, this function overwrites the default encoding behaviour Subtitle file names require a different encoding than texts

Parameters
Name Type Description
text
Examples

			encodeText('foo/bar'); // -> foo:bar