github livekit/python-sdks rtc-v0.9.0

latest releases: protocol-v1.1.8, protocol-v1.1.7, rtc-v1.1.7...
2 years ago

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

Don't miss a new python-sdks release

NewReleases is sending notifications on new releases.