Skip to content

Commit

Permalink
Add format parameters to default video codecs
Browse files Browse the repository at this point in the history
  • Loading branch information
LVala committed Aug 8, 2024
1 parent 783f25a commit e10394e
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/ex_webrtc/peer_connection/configuration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,19 @@ defmodule ExWebRTC.PeerConnection.Configuration do
%RTPCodecParameters{
payload_type: 98,
mime_type: "video/H264",
clock_rate: 90_000
clock_rate: 90_000,
sdp_fmtp_line: %FMTP{
pt: 98,
level_asymmetry_allowed: 1,
packetization_mode: 0,
profile_level_id: 0x42E01F
}
},
%RTPCodecParameters{
payload_type: 45,
mime_type: "video/AV1",
clock_rate: 90_000
clock_rate: 90_000,
sdp_fmtp_line: %FMTP{pt: 45, level_idx: 5, profile: 0, tier: 0}
}
]

Expand Down

0 comments on commit e10394e

Please sign in to comment.