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