diff --git a/lib/vyasa/medium/playback.ex b/lib/vyasa/medium/playback.ex index 3dae1de1..5c035f39 100644 --- a/lib/vyasa/medium/playback.ex +++ b/lib/vyasa/medium/playback.ex @@ -25,7 +25,6 @@ defmodule Vyasa.Medium.Playback do played_at: nil, # timestamps paused_at: nil, - # seconds TODO: convert to ms to standardise w HTML players? elapsed: 0 } end diff --git a/lib/vyasa_web/components/audio_player.ex b/lib/vyasa_web/components/audio_player.ex index 79166cd1..50985cd4 100644 --- a/lib/vyasa_web/components/audio_player.ex +++ b/lib/vyasa_web/components/audio_player.ex @@ -15,7 +15,6 @@ defmodule VyasaWeb.AudioPlayer do @impl true def render(assigns) do - # TODO: remove the reliance on the playback prop passed here, it forces a remounting of the node, which is undesirable ~H"""
@@ -31,11 +30,6 @@ defmodule VyasaWeb.AudioPlayer do } = _assigns, socket ) do - IO.inspect( - "TRACE: audio player notified by media bridge -- audio_player.ex with event = #{event}", - label: "checkpoint" - ) - {:ok, socket |> assign(playback: playback)} diff --git a/lib/vyasa_web/live/media_live/media_bridge.ex b/lib/vyasa_web/live/media_live/media_bridge.ex index 0c22ee10..e258aa0d 100644 --- a/lib/vyasa_web/live/media_live/media_bridge.ex +++ b/lib/vyasa_web/live/media_live/media_bridge.ex @@ -73,7 +73,7 @@ defmodule VyasaWeb.MediaLive.MediaBridge do } = socket ) do - # TODO: add case for updating playback on seek + # TODO: [refactor] add case for updating playback on seek socket |> assign( playback: @@ -124,7 +124,7 @@ defmodule VyasaWeb.MediaLive.MediaBridge do %{playback | playing?: false, paused_at: now, elapsed: elapsed} end - # TODO: merge with the other update playback functions + # TODO: [refactor] merge with the other update playback functions defp update_playback_on_seek(socket, position_ms) do %{ playback: