moonlink.js / Exports / MoonlinkTrack

Class: MoonlinkTrack

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new MoonlinkTrack(data, requester?): MoonlinkTrack

Parameters

NameType
dataMoonlinkTrackOptions
requester?any

Returns

MoonlinkTrack

Defined in

src/@Utils/MoonlinkTrack.ts:17

Properties

artworkUrl

artworkUrl: string

Defined in

src/@Utils/MoonlinkTrack.ts:14


author

author: string

Defined in

src/@Utils/MoonlinkTrack.ts:6


duration

duration: number

Defined in

src/@Utils/MoonlinkTrack.ts:8


encoded

encoded: string

Defined in

src/@Utils/MoonlinkTrack.ts:3


identifier

identifier: string

Defined in

src/@Utils/MoonlinkTrack.ts:4


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

src/@Utils/MoonlinkTrack.ts:9


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

src/@Utils/MoonlinkTrack.ts:5


url

url: string

Defined in

src/@Utils/MoonlinkTrack.ts:7

Accessors

calculateRealTimePosition

get calculateRealTimePosition(): number

Returns

number

Defined in

src/@Utils/MoonlinkTrack.ts:33

Methods

setPosition

setPosition(data): MoonlinkTrack

Parameters

NameType
datanumber

Returns

MoonlinkTrack

Defined in

src/@Utils/MoonlinkTrack.ts:52


setTime

setTime(data): MoonlinkTrack

Parameters

NameType
datanumber

Returns

MoonlinkTrack

Defined in

src/@Utils/MoonlinkTrack.ts:56