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

Add support for cancellation token. #2

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

marcoregueira
Copy link
Contributor

Here is my pull request for issue #1, adding support for cancellation tokens.

Example

            var tokenSource = new CancellationTokenSource();
            tokenSource.CancelAfter(5000);
            decoder.OnFrameReceived += Decoder_OnFrameReceived;
            decoder.StartDecodingAsync("http://83.128.74.78:8083/mjpg/video.mjpg", tokenSource.Token);

I hope you find it useful.

@4egod
Copy link
Owner

4egod commented Feb 20, 2023

LGTM

@4egod 4egod merged commit 1cd2165 into 4egod:master Feb 20, 2023
@marcoregueira marcoregueira deleted the cancellationtoken branch February 20, 2023 16: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

2 participants