moonlink.js / Exports / MoonlinkTrack
Class: MoonlinkTrack
Table of contents
Constructors
Properties
- artworkUrl
- author
- duration
- encoded
- identifier
- isSeekable
- isStream
- isrc
- position
- requester
- sourceName
- time
- title
- url
Accessors
Methods
Constructors
constructor
• new MoonlinkTrack(data
, requester?
): MoonlinkTrack
Parameters
Name | Type |
---|---|
data | MoonlinkTrackOptions |
requester? | any |
Returns
Defined in
src/@Utils/MoonlinkTrack.ts:17
Properties
artworkUrl
• artworkUrl: string
Defined in
src/@Utils/MoonlinkTrack.ts:14
author
• author: string
Defined in
duration
• duration: number
Defined in
encoded
• encoded: string
Defined in
identifier
• identifier: string
Defined in
isSeekable
• isSeekable: boolean
Defined in
src/@Utils/MoonlinkTrack.ts:10
isStream
• isStream: boolean
Defined in
src/@Utils/MoonlinkTrack.ts:11
isrc
• isrc: string
Defined in
src/@Utils/MoonlinkTrack.ts:15
position
• position: number
Defined in
requester
• requester: any
Defined in
src/@Utils/MoonlinkTrack.ts:13
sourceName
• sourceName: string
Defined in
src/@Utils/MoonlinkTrack.ts:12
time
• Optional
time: number
Defined in
src/@Utils/MoonlinkTrack.ts:16
title
• title: string
Defined in
url
• url: string
Defined in
Accessors
calculateRealTimePosition
• get
calculateRealTimePosition(): number
Returns
number
Defined in
src/@Utils/MoonlinkTrack.ts:33
Methods
setPosition
▸ setPosition(data
): MoonlinkTrack
Parameters
Name | Type |
---|---|
data | number |
Returns
Defined in
src/@Utils/MoonlinkTrack.ts:52
setTime
▸ setTime(data
): MoonlinkTrack
Parameters
Name | Type |
---|---|
data | number |