Skip to content

rtc-v0.9.0

Compare
Choose a tag to compare
@theomonnom theomonnom released this 14 Feb 20:42
· 222 commits to main since this release
818aa98

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 and AudioStream now receive events instead of directly receiving a frame:
stream = rtc.AudioStream(track)
async for event in stream:
      frame = event.frame

What's Changed

Full Changelog: rtc-v0.8.0...rtc-v0.9.0