I have a WPF application which dynamically loads video or image files(depending on user's choice, to a MediaElement
control.
It is working fine when it is a video and gets the MediaEnded
event fired on ending the video.
But when I load an image, the MediaEnded
event is fired within 5 seconds.
Is it a default value? or can I change it programmatically?
Is there any property to change this interval or disable such an option?
Is it possible to make it paused until a specific action?
I have set the following properties as follows
MediaControl1.LoadedBehavior = MediaState.Manual;
MediaControl1.UnloadedBehavior = MediaState.Manual;