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

Lack of examples #2

Open
aegroto opened this issue Nov 29, 2020 · 2 comments
Open

Lack of examples #2

aegroto opened this issue Nov 29, 2020 · 2 comments

Comments

@aegroto
Copy link

aegroto commented Nov 29, 2020

I'm interested in using this wrapper to make some experiments about real-time video rendering. However, I've not been able to figure out how to use it nor to find working snippets to understanding how the struct SrtSocket should be used. Is there any project using this wrapper available? This could be enough while documentation is being written.

@nthieu173
Copy link
Owner

Hello, this was a library I developed for personal use first and I honestly didn't imagine that someone would be interested. That being said, I'm still constantly changing this library and it seemed too impractical to write documentation to functions which I might change tomorrow.

Still, looking at the unit test in lib.rs should give you an idea of how to connect sockets and the SrtSocket struct implements the Read and Write traits in std which means you can use read() and write() on them as appropriate.

lu-zero added a commit to luminem/srt-rs that referenced this issue Dec 14, 2020
They are a straight port from the libsrt capi examples.

Refer to nthieu173#2.
lu-zero added a commit to luminem/srt-rs that referenced this issue Dec 17, 2020
They are a straight port from the libsrt capi examples.

Refer to nthieu173#2.
@lu-zero
Copy link
Contributor

lu-zero commented Dec 17, 2020

I added the same examples for the high-level API.

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

3 participants