Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

MediaElement latency

$
0
0
Hi,

I'm developing a very simple media player application (using .NET 3.5 and WPF under XP and Vista) that loads and plays still images and video files in response to commands from a serial device. I'm using an Image control for the static images and a MediaElement control for the video in full screen mode.

The videos are fairly small at the moment (approx 16MB) however the loading time for each video is becoming a problem, taking consistently more than a second to load during which the screen is simply
blank. While I don't expect the video to load instantaneously the time it takes is unacceptable in the context of the application.

Are there any strategies that I can use to reduce the time it takes to load these?

Is it possible for me to I preload all the video files into memory and then pass them to the MediaElement?

Or should I be using a different control for this situation, like the WPF MediaPlayer or even reverting
to hosting the ActiveX version of the Media Player?


James

Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>