Explorar o código

fix(frontend): fix stream enqueueing position

Miguel Ángel Moreno hai 1 ano
pai
achega
4d5978efac
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/frontend/tubo/events.cljs

+ 2 - 1
src/frontend/tubo/events.cljs

@@ -292,7 +292,8 @@
                                    [::add-to-media-queue
                                     (conj {:service-color service-color} %)]])
                        streams)
-                  [:dispatch [::fetch-audio-player-stream (:url (first streams)) 0]]))}))
+                  [:dispatch [::fetch-audio-player-stream (:url (first streams))
+                              (count (:media-queue db))]]))}))
 
 (rf/reg-event-fx
  ::add-to-bookmarks