Preparing search index...
The search index is not available
@rendley/sdk - v1.7.2
@rendley/sdk
SubtitlesClip
Class SubtitlesClip
Hierarchy (
View Summary
)
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
SubtitlesClip
Index
Constructors
constructor
Properties
animation
Controller
id
sprite
state
style
Methods
add
Clip
Mask
add
Effect
add
Filter
clear
All
Custom
Data
clone
destroy
generate
New
Id
get
All
Custom
Data
get
Custom
Data
get
Duration
get
Effect
By
Id
get
Effects
get
End
Time
get
Filter
By
Id
get
Filters
get
Has
Transition
get
Id
get
Is
Processing
get
Left
Bound
get
Left
Trim
get
Masks
get
Media
Id
get
Right
Bound
get
Right
Trim
get
Start
Time
get
Subtitles
Id
get
Subtitles
Offset
get
Trimmed
Duration
get
Type
get
Visible
has
Custom
Data
has
Sprite
init
is
Active
is
Ready
move
By
offload
on
Pause
on
Play
on
Render
Done
on
Render
Start
on
Resize
preload
remove
Clip
Mask
remove
Effect
remove
Filter
remove
Subtitles
render
reset
All
Animation
Properties
serialize
set
All
Custom
Data
set
Custom
Data
set
Has
Transition
set
Left
Trim
set
Right
Trim
set
Start
Time
set
Subtitles
set
Subtitles
Id
set
Subtitles
Offset
set
Visible
update
update
Duration
update
Media
Data
update
Visibility
deserialize
Constructors
constructor
new
SubtitlesClip
(
options
:
ClipOptions
<
ClipStyle
<
Sprite
>
>
)
:
SubtitlesClip
Parameters
options
:
ClipOptions
<
ClipStyle
<
Sprite
>
>
Returns
SubtitlesClip
Properties
Readonly
animation
Controller
animationController
:
(Anonymous class)
<
Sprite
,
ClipStyle
<
Sprite
>
>
id
id
:
string
sprite
sprite
:
Sprite
state
state
:
ClipState
style
style
:
ClipStyle
<
Sprite
>
Methods
add
Clip
Mask
addClipMask
(
clip
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
,
options
?:
MaskOptions
,
)
:
undefined
|
MaskFilter
Parameters
clip
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
Optional
options
:
MaskOptions
Returns
undefined
|
MaskFilter
add
Effect
addEffect
(
effect
:
Effect
)
:
void
Parameters
effect
:
Effect
Returns
void
add
Filter
addFilter
(
filter
:
Filter
)
:
void
Parameters
filter
:
Filter
Returns
void
clear
All
Custom
Data
clearAllCustomData
()
:
void
Returns
void
clone
clone
()
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
Returns
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
destroy
destroy
()
:
void
Returns
void
generate
New
Id
generateNewId
()
:
void
Returns
void
get
All
Custom
Data
getAllCustomData
()
:
undefined
|
Map
<
string
,
unknown
>
Returns
undefined
|
Map
<
string
,
unknown
>
get
Custom
Data
getCustomData
(
key
:
string
)
:
unknown
Parameters
key
:
string
Returns
unknown
get
Duration
getDuration
()
:
number
Returns
number
get
Effect
By
Id
getEffectById
(
effectId
:
string
)
:
undefined
|
Effect
Parameters
effectId
:
string
Returns
undefined
|
Effect
get
Effects
getEffects
()
:
Effect
[]
Returns
Effect
[]
get
End
Time
getEndTime
()
:
number
Returns
number
get
Filter
By
Id
getFilterById
(
filterId
:
string
)
:
undefined
|
Filter
Parameters
filterId
:
string
Returns
undefined
|
Filter
get
Filters
getFilters
()
:
Filter
[]
Returns
Filter
[]
get
Has
Transition
getHasTransition
()
:
boolean
Returns
boolean
get
Id
getId
()
:
string
Returns
string
get
Is
Processing
getIsProcessing
()
:
boolean
Returns
boolean
get
Left
Bound
getLeftBound
()
:
number
Returns
number
get
Left
Trim
getLeftTrim
()
:
number
Returns
number
get
Masks
getMasks
()
:
MaskFilter
[]
Returns
MaskFilter
[]
get
Media
Id
getMediaId
()
:
undefined
|
string
Returns
undefined
|
string
get
Right
Bound
getRightBound
()
:
number
Returns
number
get
Right
Trim
getRightTrim
()
:
number
Returns
number
get
Start
Time
getStartTime
()
:
number
Returns
number
get
Subtitles
Id
getSubtitlesId
()
:
undefined
|
string
Returns
undefined
|
string
get
Subtitles
Offset
getSubtitlesOffset
()
:
number
Returns
number
get
Trimmed
Duration
getTrimmedDuration
()
:
number
Returns
number
get
Type
getType
()
:
string
Returns
string
get
Visible
getVisible
()
:
boolean
Returns
boolean
has
Custom
Data
hasCustomData
(
key
:
string
)
:
boolean
Parameters
key
:
string
Returns
boolean
has
Sprite
hasSprite
()
:
boolean
Returns
boolean
init
init
(
layerId
:
string
)
:
Promise
<
void
>
Parameters
layerId
:
string
Returns
Promise
<
void
>
is
Active
isActive
(
currentTime
:
number
)
:
boolean
Parameters
currentTime
:
number
Returns
boolean
is
Ready
isReady
()
:
boolean
Returns
boolean
move
By
moveBy
(
amount
:
number
)
:
void
Parameters
amount
:
number
Returns
void
offload
offload
()
:
void
Returns
void
on
Pause
onPause
(
currentTime
:
number
)
:
void
Parameters
currentTime
:
number
Returns
void
on
Play
onPlay
(
currentTime
:
number
)
:
Promise
<
void
>
Parameters
currentTime
:
number
Returns
Promise
<
void
>
on
Render
Done
onRenderDone
(
canceled
:
boolean
)
:
Promise
<
void
>
Parameters
canceled
:
boolean
Returns
Promise
<
void
>
on
Render
Start
onRenderStart
(
options
:
ExportOptions
)
:
Promise
<
void
>
Parameters
options
:
ExportOptions
Returns
Promise
<
void
>
on
Resize
onResize
(
width
:
number
,
height
:
number
)
:
void
Parameters
width
:
number
height
:
number
Returns
void
preload
preload
(
currentTime
:
number
)
:
void
Parameters
currentTime
:
number
Returns
void
remove
Clip
Mask
removeClipMask
(
clip
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
)
:
void
Parameters
clip
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
Returns
void
remove
Effect
removeEffect
(
effectId
:
string
)
:
void
Parameters
effectId
:
string
Returns
void
remove
Filter
removeFilter
(
filterId
:
string
)
:
void
Parameters
filterId
:
string
Returns
void
remove
Subtitles
removeSubtitles
()
:
void
Returns
void
render
render
(
currentTime
:
number
)
:
null
Parameters
currentTime
:
number
Returns
null
reset
All
Animation
Properties
resetAllAnimationProperties
()
:
void
Returns
void
serialize
serialize
()
:
{
animationController
?:
{
animationDataIn
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationDataLoop
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationDataOut
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationInDuration
?:
number
;
animationLoopCount
?:
number
;
animationOutDuration
?:
number
;
loopSmoothing
?:
number
;
}
;
clipMasks
?:
{
clipId
:
string
;
id
:
string
;
wrapMode
:
MaskWrapModeEnum
}
[]
;
customData
?:
[
string
,
unknown
]
[]
;
duration
:
number
;
effects
:
{
id
:
string
;
options
:
{
fragmentSrc
?:
string
;
frameHeight
:
number
;
frameWidth
:
number
;
textureHeight
:
number
;
textureWidth
:
number
;
uniforms
?:
Record
<
string
,
unknown
>
;
}
;
sourceId
:
string
;
}
[]
;
filters
:
{
id
:
string
;
options
:
{
lutUrl
:
string
}
;
sourceId
:
string
}
[]
;
id
:
string
;
isVisible
:
boolean
;
leftTrim
:
number
;
mediaDataId
?:
string
;
rightTrim
:
number
;
startTime
:
number
;
style
?:
unknown
;
subtitlesId
?:
string
;
subtitlesOffset
:
number
;
text
?:
string
;
type
:
string
;
wrapMode
?:
CLAMP
|
REPEAT
|
PING_PONG
|
EMPTY
;
}
Returns
{
animationController
?:
{
animationDataIn
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationDataLoop
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationDataOut
?:
{
amplification
?:
number
;
inOutOfRange
:
OutOfRangeEnum
;
name
:
string
;
offset
?:
number
;
outOutOfRange
:
OutOfRangeEnum
;
propertyAnimations
:
{
inOutOfRange
:
OutOfRangeEnum
;
keyframes
:
{
easing
:
EasingEnum
;
relativeProperty
?:
string
;
space
:
AnimationSpaceEnum
;
time
:
number
;
value
:
string
|
number
;
}
[]
;
outOutOfRange
:
OutOfRangeEnum
;
property
:
string
;
}
[]
;
speed
?:
number
;
}
;
animationInDuration
?:
number
;
animationLoopCount
?:
number
;
animationOutDuration
?:
number
;
loopSmoothing
?:
number
;
}
;
clipMasks
?:
{
clipId
:
string
;
id
:
string
;
wrapMode
:
MaskWrapModeEnum
}
[]
;
customData
?:
[
string
,
unknown
]
[]
;
duration
:
number
;
effects
:
{
id
:
string
;
options
:
{
fragmentSrc
?:
string
;
frameHeight
:
number
;
frameWidth
:
number
;
textureHeight
:
number
;
textureWidth
:
number
;
uniforms
?:
Record
<
string
,
unknown
>
;
}
;
sourceId
:
string
;
}
[]
;
filters
:
{
id
:
string
;
options
:
{
lutUrl
:
string
}
;
sourceId
:
string
}
[]
;
id
:
string
;
isVisible
:
boolean
;
leftTrim
:
number
;
mediaDataId
?:
string
;
rightTrim
:
number
;
startTime
:
number
;
style
?:
unknown
;
subtitlesId
?:
string
;
subtitlesOffset
:
number
;
text
?:
string
;
type
:
string
;
wrapMode
?:
CLAMP
|
REPEAT
|
PING_PONG
|
EMPTY
;
}
set
All
Custom
Data
setAllCustomData
(
data
:
Map
<
string
,
unknown
>
)
:
void
Parameters
data
:
Map
<
string
,
unknown
>
Returns
void
set
Custom
Data
setCustomData
(
key
:
string
,
value
:
unknown
,
overwrite
?:
boolean
)
:
boolean
Parameters
key
:
string
value
:
unknown
overwrite
:
boolean
= true
Returns
boolean
set
Has
Transition
setHasTransition
(
hasTransition
:
boolean
)
:
void
Parameters
hasTransition
:
boolean
Returns
void
set
Left
Trim
setLeftTrim
(
trim
:
number
)
:
void
Parameters
trim
:
number
Returns
void
set
Right
Trim
setRightTrim
(
trim
:
number
)
:
void
Parameters
trim
:
number
Returns
void
set
Start
Time
setStartTime
(
startTime
:
number
)
:
void
Parameters
startTime
:
number
Returns
void
set
Subtitles
setSubtitles
(
subtitlesId
:
string
,
offset
?:
number
)
:
void
Parameters
subtitlesId
:
string
offset
:
number
= 0
Returns
void
set
Subtitles
Id
setSubtitlesId
(
subtitlesId
:
string
)
:
void
Parameters
subtitlesId
:
string
Returns
void
set
Subtitles
Offset
setSubtitlesOffset
(
offset
:
number
)
:
void
Parameters
offset
:
number
Returns
void
set
Visible
setVisible
(
visible
:
boolean
)
:
void
Parameters
visible
:
boolean
Returns
void
update
update
(
currentTime
:
number
)
:
void
Parameters
currentTime
:
number
Returns
void
update
Duration
updateDuration
()
:
void
Returns
void
update
Media
Data
updateMediaData
(
newMediaId
?:
string
)
:
Promise
<
boolean
>
Parameters
Optional
newMediaId
:
string
Returns
Promise
<
boolean
>
update
Visibility
updateVisibility
(
currentTime
:
number
)
:
void
Parameters
currentTime
:
number
Returns
void
Static
deserialize
deserialize
(
data
:
object
)
:
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
Parameters
data
:
object
Returns
Clip
<
Sprite
,
ClipStyle
<
Sprite
>
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
animation
Controller
id
sprite
state
style
Methods
add
Clip
Mask
add
Effect
add
Filter
clear
All
Custom
Data
clone
destroy
generate
New
Id
get
All
Custom
Data
get
Custom
Data
get
Duration
get
Effect
By
Id
get
Effects
get
End
Time
get
Filter
By
Id
get
Filters
get
Has
Transition
get
Id
get
Is
Processing
get
Left
Bound
get
Left
Trim
get
Masks
get
Media
Id
get
Right
Bound
get
Right
Trim
get
Start
Time
get
Subtitles
Id
get
Subtitles
Offset
get
Trimmed
Duration
get
Type
get
Visible
has
Custom
Data
has
Sprite
init
is
Active
is
Ready
move
By
offload
on
Pause
on
Play
on
Render
Done
on
Render
Start
on
Resize
preload
remove
Clip
Mask
remove
Effect
remove
Filter
remove
Subtitles
render
reset
All
Animation
Properties
serialize
set
All
Custom
Data
set
Custom
Data
set
Has
Transition
set
Left
Trim
set
Right
Trim
set
Start
Time
set
Subtitles
set
Subtitles
Id
set
Subtitles
Offset
set
Visible
update
update
Duration
update
Media
Data
update
Visibility
deserialize
@rendley/sdk - v1.7.2
Loading...