Constructors
constructor
- new Audio(__namedParameters: object): Audio
-
Parameters
-
__namedParameters: object
-
positionInterval: undefined | string | number | IImmutable<string | number>
-
-
state: undefined | Buffering | Playing | Stopped
Accessors
duration
- get duration(): Milliseconds | undefined
-
Returns Milliseconds
|
undefined
error
- get error(): Error | undefined
-
Returns Error
|
undefined
position
- get position(): Milliseconds | undefined
-
Returns Milliseconds
|
undefined
start
- get start(): Milliseconds
transitioning
- get transitioning(): boolean
Methods
seek
- seek(milliseconds: MillisecondsAccepted): Promise<void>
-
Parameters
-
milliseconds: MillisecondsAccepted
Returns Promise<void>