You've already forked algora-tv
mirror of
https://github.com/algora-io/tv.git
synced 2025-07-12 22:10:32 +02:00
run upload worker sync instead of adding to queue
This commit is contained in:
@ -268,9 +268,12 @@ defmodule AlgoraWeb.StudioLive do
|
|||||||
video = Library.init_mp4!(entry, path, socket.assigns.current_user)
|
video = Library.init_mp4!(entry, path, socket.assigns.current_user)
|
||||||
send(self(), {Library, %Library.Events.ProcessingQueued{video: video}})
|
send(self(), {Library, %Library.Events.ProcessingQueued{video: video}})
|
||||||
|
|
||||||
%{video_id: video.id}
|
# TODO: add to oban queue instead
|
||||||
|> Workers.HLSTransmuxer.new()
|
# ensure that the worker runs in the same machine where the upload is consumed
|
||||||
|> Oban.insert()
|
# %{video_id: video.id}
|
||||||
|
# |> Workers.HLSTransmuxer.new()
|
||||||
|
# |> Oban.insert()
|
||||||
|
Library.transmux_to_hls(video, fn _ -> nil end)
|
||||||
|
|
||||||
{:ok, video}
|
{:ok, video}
|
||||||
end)
|
end)
|
||||||
|
Reference in New Issue
Block a user