Skip to content

Commit 2c7d5c4

Browse files
add h265 codec support (#762)
1 parent 3c3a260 commit 2c7d5c4

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

livekit-ffi/protocol/video_frame.proto

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ enum VideoCodec {
8989
H264 = 1;
9090
AV1 = 2;
9191
VP9 = 3;
92+
H265 = 4;
9293
}
9394

9495
enum VideoRotation {

livekit-ffi/src/conversion/video_frame.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ impl From<proto::VideoCodec> for VideoCodec {
9090
proto::VideoCodec::H264 => Self::H264,
9191
proto::VideoCodec::Av1 => Self::AV1,
9292
proto::VideoCodec::Vp9 => Self::VP9,
93+
proto::VideoCodec::H265 => Self::H265,
9394
}
9495
}
9596
}

livekit/src/room/options.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pub enum VideoCodec {
2323
H264,
2424
VP9,
2525
AV1,
26+
H265,
2627
}
2728

2829
impl VideoCodec {
@@ -32,6 +33,7 @@ impl VideoCodec {
3233
VideoCodec::H264 => "h264",
3334
VideoCodec::VP9 => "vp9",
3435
VideoCodec::AV1 => "av1",
36+
VideoCodec::H265 => "h265",
3537
}
3638
}
3739
}

0 commit comments

Comments
 (0)