Skip to content

Latest commit

 

History

History
18 lines (16 loc) · 484 Bytes

README.md

File metadata and controls

18 lines (16 loc) · 484 Bytes

DGPlayer

Interface

interface DGPlayer {
    on(event, callback);           // event: play, pause, volume 
    off(event, callback);
    
    property string state;          // buffering, playing, or paused
    property number bufferProgress; // 0-100
    property number startTime;      // in milliseconds since the epoch
    property url coverArt;
    property number volume;         // 0-100
    property string songTitle;
    property string songArtist;
}