API.getTimeRemaining()

Returns how much time is remaining for the currently playing media. If there is no media, it will return 0.

USAGE

console.log(API.getTimeRemaining());

Comments

  • Avatar
    Proditor Magnus

    If song is stuck, returns -1.

Powered by Zendesk