-
Notifications
You must be signed in to change notification settings - Fork 40
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
With Context for MediaStream Classes #73
Comments
I like it, would you want to make a pull request? |
Sure! I'll need some help though as I've never worked on internals of any widget before. The use-case I was looking for is somewhat like this: For example, following snippet: for _ in range(10):
recorder.recording = True
time.sleep(0.5)
recorder.recording = False
time.sleep(0.5)
print(hash(recorder.image.value)) Prints the same hash which corresponds to previous state of the widget (initially it prints out zero as Please tell me if this is not the correct way of taking multiple images in a loop. If this is a problem, I'll like to help in fixing this too. |
Creating
MediaStream
classes using awith
context can be useful as it ensures that media devices will be closed at the end of context.Example syntax:
The text was updated successfully, but these errors were encountered: