@twick/timeline / Exports / AudioElement
Class: AudioElement
Hierarchy
-
↳
AudioElement
Table of contents
Constructors
Properties
Methods
- accept
- getAnimation
- getDuration
- getEnd
- getEndAt
- getId
- getMediaDuration
- getName
- getPlaybackRate
- getPosition
- getProps
- getSrc
- getStart
- getStartAt
- getTrackId
- getType
- getVolume
- setAnimation
- setEnd
- setId
- setLoop
- setMediaDuration
- setName
- setPlaybackRate
- setPosition
- setProps
- setSrc
- setStart
- setStartAt
- setTrackId
- setType
- setVolume
- updateAudioMeta
Constructors
constructor
• new AudioElement(src): AudioElement
Parameters
| Name | Type |
|---|---|
src | string |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/audio.element.ts:11
Properties
animation
• Protected Optional animation: ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:13
e
• Protected e: number
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:10
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/audio.element.ts:8
name
• Protected name: string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:12
props
• Protected props: AudioProps
Overrides
Defined in
packages/timeline/src/core/elements/audio.element.ts:9
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/audio.element.ts:89
getAnimation
▸ getAnimation(): undefined | ElementAnimation
Returns
undefined | ElementAnimation
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:59
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/audio.element.ts:30
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/audio.element.ts:22
getName
▸ getName(): string
Returns
string
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:55
getPlaybackRate
▸ getPlaybackRate(): number
Returns
number
Defined in
packages/timeline/src/core/elements/audio.element.ts:38
getPosition
▸ getPosition(): Position
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:63
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/audio.element.ts:34
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/audio.element.ts:26
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/audio.element.ts:42
setAnimation
▸ setAnimation(animation?): AudioElement
Parameters
| Name | Type |
|---|---|
animation? | ElementAnimation |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:100
setEnd
▸ setEnd(e): AudioElement
Parameters
| Name | Type |
|---|---|
e | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:85
setId
▸ setId(id): AudioElement
Parameters
| Name | Type |
|---|---|
id | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:70
setLoop
▸ setLoop(loop): AudioElement
Parameters
| Name | Type |
|---|---|
loop | boolean |
Returns
Defined in
packages/timeline/src/core/elements/audio.element.ts:66
setMediaDuration
▸ setMediaDuration(mediaDuration): AudioElement
Parameters
| Name | Type |
|---|---|
mediaDuration | number |
Returns
Defined in
packages/timeline/src/core/elements/audio.element.ts:56
setName
▸ setName(name): AudioElement
Parameters
| Name | Type |
|---|---|
name | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:95
setPlaybackRate
▸ setPlaybackRate(playbackRate): AudioElement
Parameters
| Name | Type |
|---|---|
playbackRate | number |
Returns
Defined in
packages/timeline/src/core/elements/audio.element.ts:76
setPosition
▸ setPosition(position): AudioElement
Parameters
| Name | Type |
|---|---|
position | Position |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:105
setProps
▸ setProps(props): AudioElement
Parameters
| Name | Type |
|---|---|
props | Omit<any, "src"> |
Returns
Overrides
Defined in
packages/timeline/src/core/elements/audio.element.ts:81
setSrc
▸ setSrc(src): Promise<AudioElement>
Parameters
| Name | Type |
|---|---|
src | string |
Returns
Promise<AudioElement>
Defined in
packages/timeline/src/core/elements/audio.element.ts:50
setStart
▸ setStart(s): AudioElement
Parameters
| Name | Type |
|---|---|
s | number |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:80
setStartAt
▸ setStartAt(time): AudioElement
Parameters
| Name | Type |
|---|---|
time | number |
Returns
Defined in
packages/timeline/src/core/elements/audio.element.ts:71
setTrackId
▸ setTrackId(trackId): AudioElement
Parameters
| Name | Type |
|---|---|
trackId | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:90
setType
▸ setType(type): AudioElement
Parameters
| Name | Type |
|---|---|
type | string |
Returns
Inherited from
Defined in
packages/timeline/src/core/elements/base.element.ts:75
setVolume
▸ setVolume(volume): AudioElement
Parameters
| Name | Type |
|---|---|
volume | number |
Returns
Defined in
packages/timeline/src/core/elements/audio.element.ts:61
updateAudioMeta
▸ updateAudioMeta(): Promise<void>
Returns
Promise<void>