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 334fa5a commit 5f85499Copy full SHA for 5f85499
lib/live_ex_webrtc/publisher.ex
@@ -75,6 +75,11 @@ defmodule LiveExWebRTC.Publisher do
75
]
76
```
77
78
+ You can also use the shorthands for default H264 and VP8 codec parameters:
79
+ ```elixir
80
+ video_codecs = [:h264, :vp8]
81
+ ```
82
+
83
## Examples
84
85
```elixir
@@ -771,6 +776,9 @@ defmodule LiveExWebRTC.Publisher do
771
776
772
777
defp simulcast_supported?(codecs) do
773
778
Enum.all?(codecs, fn
779
+ default_codec when default_codec in [:h264, :vp8] ->
780
+ true
781
774
782
%RTPCodecParameters{mime_type: "video/VP8"} ->
775
783
true
784
0 commit comments