mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Use the new MIME type for AV1.
Chromium 91 and later uses "AV1" instead of "AV1X". Simulcast is still broken.
This commit is contained in:
parent
993d664ba2
commit
6fbdf0eab2
2 changed files with 3 additions and 3 deletions
|
@ -46,7 +46,7 @@ func Keyframe(codec string, packet *rtp.Packet) (bool, bool) {
|
||||||
return (vp9.Payload[0] & 0xC) == 0, true
|
return (vp9.Payload[0] & 0xC) == 0, true
|
||||||
}
|
}
|
||||||
return (vp9.Payload[0] & 0x6) == 0, true
|
return (vp9.Payload[0] & 0x6) == 0, true
|
||||||
} else if strings.EqualFold(codec, "video/av1x") {
|
} else if strings.EqualFold(codec, "video/av1") {
|
||||||
if len(packet.Payload) < 2 {
|
if len(packet.Payload) < 2 {
|
||||||
return false, true
|
return false, true
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,7 @@ func CodecPayloadType(codec webrtc.RTPCodecCapability) (webrtc.PayloadType, erro
|
||||||
default:
|
default:
|
||||||
return 0, errors.New("unknown VP9 profile")
|
return 0, errors.New("unknown VP9 profile")
|
||||||
}
|
}
|
||||||
case "video/av1x":
|
case "video/av1":
|
||||||
return 35, nil
|
return 35, nil
|
||||||
case "video/h264":
|
case "video/h264":
|
||||||
profile := fmtpValue(codec.SDPFmtpLine, "profile-level-id")
|
profile := fmtpValue(codec.SDPFmtpLine, "profile-level-id")
|
||||||
|
@ -231,7 +231,7 @@ func codecsFromName(name string) ([]webrtc.RTPCodecParameters, error) {
|
||||||
case "av1":
|
case "av1":
|
||||||
codecs = []webrtc.RTPCodecCapability{
|
codecs = []webrtc.RTPCodecCapability{
|
||||||
{
|
{
|
||||||
"video/AV1X", 90000, 0,
|
"video/AV1", 90000, 0,
|
||||||
"",
|
"",
|
||||||
fb,
|
fb,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue