@rendley/sdk - v1.12.6
Preparing search index...
Subtitles
Class Subtitles
Index
Constructors
constructor
Methods
add
Text
Block
clone
fit
Duration
To
Blocks
get
Duration
get
Id
get
Language
get
Text
Blocks
remove
Text
Block
serialize
set
Language
set
Text
Blocks
update
Subtitles
Clips
update
Text
Block
validate
Text
Blocks
deserialize
Constructors
constructor
new
Subtitles
(
options
?:
SubtitlesOptions
)
:
Subtitles
Parameters
Optional
options
:
SubtitlesOptions
Returns
Subtitles
Methods
add
Text
Block
addTextBlock
(
textBlock
:
TextBlock
,
index
?:
number
)
:
void
Parameters
textBlock
:
TextBlock
Optional
index
:
number
Returns
void
clone
clone
()
:
Subtitles
Returns
Subtitles
fit
Duration
To
Blocks
fitDurationToBlocks
()
:
void
Returns
void
get
Duration
getDuration
()
:
number
Returns
number
get
Id
getId
()
:
string
Returns
string
get
Language
getLanguage
()
:
string
Returns
string
get
Text
Blocks
getTextBlocks
()
:
readonly
TextBlock
[]
Returns
readonly
TextBlock
[]
remove
Text
Block
removeTextBlock
(
index
:
number
)
:
void
Parameters
index
:
number
Returns
void
serialize
serialize
()
:
{
duration
:
number
;
id
:
string
;
language
:
string
;
textBlocks
:
{
duration
:
number
;
text
:
string
;
time
:
number
}
[]
;
}
Returns
{
duration
:
number
;
id
:
string
;
language
:
string
;
textBlocks
:
{
duration
:
number
;
text
:
string
;
time
:
number
}
[]
;
}
set
Language
setLanguage
(
language
:
string
)
:
void
Parameters
language
:
string
Returns
void
Deprecated
Language is not used and probably not be used
set
Text
Blocks
setTextBlocks
(
textBlocks
:
TextBlock
[]
)
:
void
Parameters
textBlocks
:
TextBlock
[]
Returns
void
update
Subtitles
Clips
updateSubtitlesClips
()
:
void
Returns
void
update
Text
Block
updateTextBlock
(
index
:
number
,
textBlock
:
Partial
<
TextBlock
>
)
:
void
Parameters
index
:
number
textBlock
:
Partial
<
TextBlock
>
Returns
void
validate
Text
Blocks
validateTextBlocks
()
:
void
Returns
void
Static
deserialize
deserialize
(
data
:
object
)
:
Subtitles
Parameters
data
:
object
Returns
Subtitles
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
add
Text
Block
clone
fit
Duration
To
Blocks
get
Duration
get
Id
get
Language
get
Text
Blocks
remove
Text
Block
serialize
set
Language
set
Text
Blocks
update
Subtitles
Clips
update
Text
Block
validate
Text
Blocks
deserialize
@rendley/sdk - v1.12.6
Loading...
Deprecated