Phyks (Lucas Verney)
4d4ce6c14e
Now able to play a single file, in a format supported by your browser. * Playlists not yet supported. * Volume is a simple on/off switch. * Repeat / Random not yet supported.
18 lines
422 B
JavaScript
18 lines
422 B
JavaScript
import Immutable from "immutable";
|
|
|
|
export const entitiesRecord = new Immutable.Record({
|
|
artists: new Immutable.Map(),
|
|
albums: new Immutable.Map(),
|
|
tracks: new Immutable.Map()
|
|
});
|
|
|
|
export const stateRecord = new Immutable.Record({
|
|
isPlaying: false,
|
|
isRandom: false,
|
|
isRepeat: false,
|
|
isMute: false,
|
|
currentIndex: 0,
|
|
playlist: new Immutable.List(),
|
|
entities: new entitiesRecord()
|
|
});
|