@twick/timeline / Exports / VideoElement
Class: VideoElement
Hierarchy
-
↳
VideoElement
Table of contents
Constructors
Properties
- animation
- backgroundColor
- baseSize
- e
- frame
- frameEffects
- id
- mediaDuration
- name
- objectFit
- parentSize
- props
- s
- trackId
- type
Methods
- accept
- addFrameEffect
- getAnimation
- getBackgroundColor
- getDuration
- getEnd
- getEndAt
- getFrame
- getFrameEffects
- getId
- getMediaDuration
- getName
- getObjectFit
- getParentSize
- getPlaybackRate
- getPosition
- getProps
- getSrc
- getStart
- getStartAt
- getTrackId
- getType
- getVolume
- setAnimation
- setBackgroundColor
- setEnd
- setFrame
- setFrameEffects
- setId
- setMediaDuration
- setMediaFilter
- setName
- setObjectFit
- setParentSize
- setPlaybackRate
- setPosition
- setProps
- setSrc
- setStart
- setStartAt
- setTrackId
- setType
- setVolume
- updateVideoMeta
Constructors
constructor
• new VideoElement(src, parentSize): VideoElement
Parameters
| Name | Type |
|---|---|
src | string |
parentSize | Size |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:18
Properties
animation
• Protected Optional animation: ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:13
backgroundColor
• Protected backgroundColor: string
Defined in
packages/timeline/src/core/elements/video.element.ts:12
baseSize
• Protected baseSize: Size
Defined in
packages/timeline/src/core/elements/video.element.ts:9
e
• Protected e: number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:10
frame
• Protected frame: Frame
Defined in
packages/timeline/src/core/elements/video.element.ts:15
frameEffects
• Protected Optional frameEffects: ElementFrameEffect[]
Defined in
packages/timeline/src/core/elements/video.element.ts:14
id
• Protected id: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:7
mediaDuration
• Protected mediaDuration: number
Defined in
packages/timeline/src/core/elements/video.element.ts:10
name
• Protected name: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:12
objectFit
• Protected objectFit: ObjectFit
Defined in
packages/timeline/src/core/elements/video.element.ts:13
parentSize
• Protected parentSize: Size
Defined in
packages/timeline/src/core/elements/video.element.ts:11
props
• Protected props: VideoProps
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:16
s
• Protected s: number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:9
trackId
• Protected trackId: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:11
type
• Protected type: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:8
Methods
accept
▸ accept<T>(visitor): T
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
visitor | ElementVisitor<T> |
Returns
T
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:176
addFrameEffect
▸ addFrameEffect(frameEffect): VideoElement
Parameters
| Name | Type |
|---|---|
frameEffect | ElementFrameEffect |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:171
getAnimation
▸ getAnimation(): undefined | ElementAnimation
Returns
undefined | ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:59
getBackgroundColor
▸ getBackgroundColor(): string
Returns
string
Defined in
packages/timeline/src/core/elements/video.element.ts:44
getDuration
▸ getDuration(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:43
getEnd
▸ getEnd(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:39
getEndAt
▸ getEndAt(): number
Returns
number
Defined in
packages/timeline/src/core/elements/video.element.ts:60
getFrame
▸ getFrame(): Frame
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:36
getFrameEffects
▸ getFrameEffects(): undefined | ElementFrameEffect[]
Returns
undefined | ElementFrameEffect[]
Defined in
packages/timeline/src/core/elements/video.element.ts:40
getId
▸ getId(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:27
getMediaDuration
▸ getMediaDuration(): number
Returns
number
Defined in
packages/timeline/src/core/elements/video.element.ts:52
getName
▸ getName(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:55
getObjectFit
▸ getObjectFit(): ObjectFit
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:48
getParentSize
▸ getParentSize(): Size
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:32
getPlaybackRate
▸ getPlaybackRate(): number
Returns
number
Defined in
packages/timeline/src/core/elements/video.element.ts:68
getPosition
▸ getPosition(): Position
Returns
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:76
getProps
▸ getProps(): Record<string, any>
Returns
Record<string, any>
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:51
getSrc
▸ getSrc(): string
Returns
string
Defined in
packages/timeline/src/core/elements/video.element.ts:64
getStart
▸ getStart(): number
Returns
number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:35
getStartAt
▸ getStartAt(): number
Returns
number
Defined in
packages/timeline/src/core/elements/video.element.ts:56
getTrackId
▸ getTrackId(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:47
getType
▸ getType(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:31
getVolume
▸ getVolume(): number
Returns
number
Defined in
packages/timeline/src/core/elements/video.element.ts:72
setAnimation
▸ setAnimation(animation?): VideoElement
Parameters
| Name | Type |
|---|---|
animation? | ElementAnimation |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:100
setBackgroundColor
▸ setBackgroundColor(backgroundColor): VideoElement
Parameters
| Name | Type |
|---|---|
backgroundColor | string |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:153
setEnd
▸ setEnd(e): VideoElement
Parameters
| Name | Type |
|---|---|
e | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:85
setFrame
▸ setFrame(frame): VideoElement
Parameters
| Name | Type |
|---|---|
frame | Frame |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:128
setFrameEffects
▸ setFrameEffects(frameEffects?): VideoElement
Parameters
| Name | Type |
|---|---|
frameEffects? | ElementFrameEffect[] |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:166
setId
▸ setId(id): VideoElement
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:70
setMediaDuration
▸ setMediaDuration(mediaDuration): VideoElement
Parameters
| Name | Type |
|---|---|
mediaDuration | number |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:113
setMediaFilter
▸ setMediaFilter(mediaFilter): VideoElement
Parameters
| Name | Type |
|---|---|
mediaFilter | string |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:143
setName
▸ setName(name): VideoElement
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:95
setObjectFit
▸ setObjectFit(objectFit): VideoElement
Parameters
| Name | Type |
|---|---|
objectFit | ObjectFit |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:123
setParentSize
▸ setParentSize(parentSize): VideoElement
Parameters
| Name | Type |
|---|---|
parentSize | Size |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:118
setPlaybackRate
▸ setPlaybackRate(playbackRate): VideoElement
Parameters
| Name | Type |
|---|---|
playbackRate | number |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:133
setPosition
▸ setPosition(position): VideoElement
Parameters
| Name | Type |
|---|---|
position | Position |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:101
setProps
▸ setProps(props): VideoElement
Parameters
| Name | Type |
|---|---|
props | Omit<any, "src"> |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/video.element.ts:158
setSrc
▸ setSrc(src): Promise<VideoElement>
Parameters
| Name | Type |
|---|---|
src | string |
Returns
Promise<VideoElement>
Defined in
packages/timeline/src/core/elements/video.element.ts:107
setStart
▸ setStart(s): VideoElement
Parameters
| Name | Type |
|---|---|
s | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:80
setStartAt
▸ setStartAt(time): VideoElement
Parameters
| Name | Type |
|---|---|
time | number |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:138
setTrackId
▸ setTrackId(trackId): VideoElement
Parameters
| Name | Type |
|---|---|
trackId | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:90
setType
▸ setType(type): VideoElement
Parameters
| Name | Type |
|---|---|
type | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:75
setVolume
▸ setVolume(volume): VideoElement
Parameters
| Name | Type |
|---|---|
volume | number |
Returns
Defined in
packages/timeline/src/core/elements/video.element.ts:148
updateVideoMeta
▸ updateVideoMeta(updateFrame?): Promise<void>
Parameters
| Name | Type | Default value |
|---|---|---|
updateFrame | boolean | true |
Returns
Promise<void>