mirror of
https://github.com/memen45/SubMusic.git
synced 2026-12-01 02:02:28 +01:00
- updated Ampache5 Error codes (backwards compatible) - improved speed in Song access during play - fixed removal of removed songs (now performed after complete sync) - fixed issue on trying to sync artwork with id null
27 lines
588 B
MonkeyC
27 lines
588 B
MonkeyC
using Toybox.WatchUi;
|
|
using SubMusic.Menu;
|
|
using SubMusic;
|
|
|
|
module SubMusic {
|
|
module Menu {
|
|
class NowPlaying extends AudiosLocal {
|
|
|
|
function initialize() {
|
|
var iplayable = new SubMusic.IPlayable();
|
|
AudiosLocal.initialize(
|
|
WatchUi.loadResource(Rez.Strings.confPlayback_NowPlaying_title),
|
|
iplayable.ids(),
|
|
iplayable.types(),
|
|
method(:onAudioSelect)
|
|
);
|
|
}
|
|
|
|
function onAudioSelect(audio) {
|
|
// start playback with new songid
|
|
var iplayable = new SubMusic.IPlayable();
|
|
iplayable.setAudio(audio);
|
|
Media.startPlayback(null);
|
|
}
|
|
}
|
|
}
|
|
} |