devkanro / Meta.Vlc

Meta.Vlc is a LibVlc wrapper for WPF.
Do What The F*ck You Want To Public License
275 stars 84 forks source link

Play snapshot url? #242

Open AmerSelimovic opened 6 years ago

AmerSelimovic commented 6 years ago

Hey everyone.

I want to play a snapshot url in wpf. Image refreshes every time you refresh the url. The player accepts it and plays it. I have set the end behavior to repeat so when it ends playing it will reload it. The problem is that the player says the length is 10 seconds so it refreshes every 10 seconds. Is there a way to refresh the player every maybe half a second without freezing the application 😄 Length is a read only value.

Thanks in advance

devkanro commented 6 years ago

Ummm, make the EndBehavior to nothing, stop and play the media?

AmerSelimovic commented 6 years ago

On every refresh it is giving me a new image. I would have to stop and play it every less than a second? It is a real time stream

devkanro commented 6 years ago

What's your stream format, TS? H.264? or other something?

AmerSelimovic commented 6 years ago

I am accessing the camera locally and trying to play the snapshot url, show the image. Link looks like this http://192.168.0.240/onvif-http/snapshot?Profile_1 The player opens it and refreshes it every 10 second, it sets the length to 10.

AmerSelimovic commented 6 years ago

I can only think of changing the length to something small so it replays every little, but not possible right now and I am not sure if it would freeze the application, or refresh it every little, still not sure if it would freeze. It is working great with rtsp stream and similar because it is a continuous stream, but this needs to be refreshed to get a new image