diff --git a/app/models/broadcast.rb b/app/models/broadcast.rb index 2759933..d1f6943 100644 --- a/app/models/broadcast.rb +++ b/app/models/broadcast.rb @@ -31,9 +31,7 @@ class Broadcast < ApplicationRecord end def full_live_stream_playback_url - return stream_playback_url if full_live_stream_playback_uid.blank? - - "https://stream.mux.com/#{full_live_stream_playback_uid}.m3u8" + full_live_stream_playback_uid.blank? ? stream_playback_url : "https://stream.mux.com/#{full_live_stream_playback_uid}.m3u8" end def stream_server_url