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

Accessing to Handle for Streams #63

Closed
katyo opened this issue Sep 30, 2022 · 1 comment
Closed

Accessing to Handle for Streams #63

katyo opened this issue Sep 30, 2022 · 1 comment

Comments

@katyo
Copy link
Contributor

katyo commented Sep 30, 2022

I trying to implement async versions of CaptureStream/OutputStream traits (i.e. with next function which returns Future).
I see that Stream types internally has reference to Handle but this ref hasn't accessible via public interface.
Also I see that Device type has function handle which returns reference to internal Handle.
How about adding similar functions to our stream types too?
I don't sure may we add it to Stream trait directly.
In any case I need a way to get file descriptors from streams.
Any ideas?

@raymanfx
Copy link
Owner

Sure, we can add a function to expose the Handle for now, analogous to the one for Device. Would you mind creating a pull request?

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

No branches or pull requests

2 participants