Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: api improvements #77

Merged
merged 26 commits into from
Oct 27, 2023
Merged

fix: api improvements #77

merged 26 commits into from
Oct 27, 2023

Conversation

theomonnom
Copy link
Member

@theomonnom theomonnom commented Oct 23, 2023

  • remove pyee dependency
  • renamed close to aclose for async functions
  • added more typing around event listeners
  • don't expose any C types
    • buffer are now copied into the python GC instead
  • setup ruff
    • format & lint
  • include typing files into the package

livekit-api/livekit/api/__init__.py Outdated Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_frame.py Outdated Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_frame.py Show resolved Hide resolved
livekit-rtc/livekit/rtc/video_frame.py Show resolved Hide resolved
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

def __init__(self, owned_info: proto_video_frame.OwnedVideoFrameBuffer) -> None:
self._info = owned_info.info
self._ffi_handle = FfiHandle(owned_info.handle.id)
class VideoFrameBuffer(ABC):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might be worth unit testing all of the different frame types in this one. Seems like there's a fair amount of math that would be hard to debug if it was wrong.

@theomonnom theomonnom merged commit 0949eea into main Oct 27, 2023
15 checks passed
@theomonnom theomonnom deleted the theo/api-improvements branch October 27, 2023 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants