MediaElement video quality worse than WMP

P

Piotrekk

Hi

I have a little problem. Having small mavie.avi ( divx compression )
i've noticed that candle fire on movie.avi in windows media player is
displayed properly but in my mediaelement candle fire in focal point
is black.
Same problem is few seconds later with regular lamp ( only the little
elements on lamp ). I have tried different codecs. Really don't know
what could be the problem. The video also seem to have small lags.

Here is my code:

public partial class Window1 : System.Windows.Window
{
delegate void myDeleg();

public Window1()
{
InitializeComponent();


this.Dispatcher.BeginInvoke(System.Windows.Threading.DispatcherPriority.Render,
new myDeleg(asd));
}

private void asd()
{
MediaElement me = new MediaElement();
me.Source = new Uri(@"C:\myUsers\pkolodzi\movie.avi");

VisualBrush vb = new VisualBrush(me);
vb.Stretch = Stretch.Uniform;
rect.Fill = vb;


}

}

I would be very grateful for help.
Piotr Kolodziej
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top