A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix seeking bug when paused (no longer tries to re-pause)

+16 -7
+7 -1
src/Applications/UI/Console.elm
··· 21 21 -- 🗺 22 22 23 23 24 - view : Maybe Queue.Item -> Bool -> Bool -> { stalled : Bool, loading : Bool, playing : Bool } -> ( Float, Float ) -> Html Msg 24 + view : 25 + Maybe Queue.Item 26 + -> Bool 27 + -> Bool 28 + -> { stalled : Bool, loading : Bool, playing : Bool } 29 + -> ( Float, Float ) 30 + -> Html Msg 25 31 view activeQueueItem repeat shuffle { stalled, loading, playing } ( position, duration ) = 26 32 chunk 27 33 [ C.antialiased
+8
src/Javascript/audio-engine.js
··· 287 287 } 288 288 289 289 290 + export function seek(audio, percentage) { 291 + if (audio && !isNaN(audio.duration)) { 292 + if (audio.paused) audio.play() 293 + audio.currentTime = audio.duration * percentage 294 + } 295 + } 296 + 297 + 290 298 291 299 // Audio events 292 300 // ------------
+1 -6
src/Javascript/index.js
··· 128 128 129 129 130 130 app.ports.seek.subscribe(percentage => { 131 - const audio = orchestrion.audio 132 - 133 - if (audio && !isNaN(audio.duration)) { 134 - audio.currentTime = audio.duration * percentage 135 - if (audio.paused) audio.pause() 136 - } 131 + audioEngine.seek(orchestrion.audio, percentage) 137 132 }) 138 133 139 134