We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97d8d2f commit ae31d41Copy full SHA for ae31d41
lib/live_ex_webrtc/subscriber.ex
@@ -4,8 +4,10 @@ defmodule LiveExWebRTC.Subscriber do
4
alias ExWebRTC.{MediaStreamTrack, PeerConnection, SessionDescription}
5
6
def render(assigns) do
7
+ assigns = assign_new(assigns, :class, fn -> "" end)
8
+
9
~H"""
- <video id={@id} phx-hook="Subscriber" controls autoplay muted></video>
10
+ <video id={@id} phx-hook="Subscriber" class={@class} controls autoplay muted></video>
11
"""
12
end
13
0 commit comments