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
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