By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,336 Members | 1,057 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,336 IT Pros & Developers. It's quick & easy.

MediaElement renderred to slow and with 'sort of codec problem'

P: n/a

I have a little problem during displaying movie with WPF on Vista ( As
far as i remember I didn't have this problem in XP ). 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. Sometimes I see such a problems when I use wrong codecs to
decode the movie.
Same problem is few seconds later with regular lamp ( only the little
elements on lamp ). I have tried different codecs so i think that's
not the problem. 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()
this.Dispatcher.BeginInvoke(System.Windows.Threadi ng.DispatcherPriority.Ren**
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

Sep 28 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.