Skip to content

Commit cc8b7cf

Browse files
committed
better repr
1 parent 04bf5ad commit cc8b7cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

livekit-rtc/livekit/rtc/video_frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def convert(
199199
return VideoFrame._from_owned_info(resp.video_convert.buffer)
200200

201201
def __repr__(self) -> str:
202-
return f"rtc.VideoFrame(width={self.width}, height={self.height}, type={self.type})"
202+
return f"rtc.VideoFrame(width={self.width}, height={self.height}, type={proto_video.VideoBufferType.Name(self.type)})"
203203

204204
@classmethod
205205
def __get_pydantic_core_schema__(cls, *_: Any):

0 commit comments

Comments
 (0)