Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

how to reopen/restart stream after EndReached/Freeze #444

Closed
morl0048 opened this issue Jul 10, 2018 · 2 comments
Closed

how to reopen/restart stream after EndReached/Freeze #444

morl0048 opened this issue Jul 10, 2018 · 2 comments

Comments

@morl0048
Copy link

morl0048 commented Jul 10, 2018

I have an issue / a question (pick one) about Vlc.DotNet.

Generic information

Summary

I am displaying a rtsp stream using a VlcControl in a windows form.

This stream is from an ONVIF conformant ip camera.

When I play the stream, I always encounter the EndReached flag of the VlcControl when the stream has been playing for a bit.

So, it looks like the display of the stream just freezes, because my VlcControl thinks there's no more images to show...

I have to repress my play button every time my stream freezes, so my application can't really run by itself...

I want my stream to restart by itself when it freezes.

I tried using the EndReached flag :
private void myVlcControl_EndReached(object sender, Vlc.DotNet.Core.VlcMediaPlayerEndReachedEventArgs e)
{

(sender as VlcControl).Play(MyStream.URL);

}

But, when I do so, my stream won't restart...

What's the best way to do what I'm trying to achieve?

@jeremyVignelles
Copy link
Collaborator

Please read the wiki, there is a page for this kind of freezes

@morl0048
Copy link
Author

oh god, I feel stupid, it's right there! hahah

Thank allot!

Wiki link

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants