rtc-v0.9.0
Breaking changes from rtc-v0.8.0
- Video buffers has been reworked. The new
VideoFrame
implementation can now contains any VideoFormat type:
source = rtc.VideoSource(track)
my_frame = rtc.VideoFrame(1920, 1080, rtc.VideoBufferType.RGBA, data)
source.capture_frame(my_frame)
- Use the
convert
method to convert a VideoFrame to another format:
i420_frame = my_frame.convert(rtc.VideoBufferType.I420)
- You can now directly select the video format when constructing a
VideoStream
stream = rtc.VideoStream(track, format=rtc.VideoBufferType.RGBA)
VideoStream
andAudioStream
now receive events instead of directly receiving a frame:
stream = rtc.AudioStream(track)
async for event in stream:
frame = event.frame
What's Changed
- update protocol and generate stubs on CI by @davidzhao in #152
- fix LIVEKIT_LIB_PATH env by @theomonnom in #156
- feat: new video buffer api by @theomonnom in #155
- relax protobuf version requirements by @keepingitneil in #158
- fix ptr align by @theomonnom in #160
- kill process on panic by @theomonnom in #164
- remove noisy debug logs by @theomonnom in #165
Full Changelog: rtc-v0.8.0...rtc-v0.9.0