Skip to content

Commit

Permalink
Update general H265 support for WebRTC AlexxIT#1439
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT authored and seydx committed Feb 10, 2025
1 parent 876390a commit 468b426
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/webrtc/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func (c *Conn) AddTrack(media *core.Media, codec *core.Codec, track *core.Receiv
}

case core.CodecH265:
// SafariPay because it is the only browser in the world
// that supports WebRTC + H265
sender.Handler = h265.SafariPay(1200, sender.Handler)
sender.Handler = h265.RTPPay(1200, sender.Handler)
if track.Codec.IsRTP() {
sender.Handler = h265.RTPDepay(track.Codec, sender.Handler)
} else {
sender.Handler = h265.RepairAVCC(track.Codec, sender.Handler)
}

case core.CodecPCMA, core.CodecPCMU, core.CodecPCM, core.CodecPCML:
Expand Down

0 comments on commit 468b426

Please sign in to comment.