Prevent display of ActiveMovie Window

Mar 6, 2012 at 5:42 PM

Hi there,

I have the following UserControl:

<UserControl x:Class="CapturePresenter.CapturePresenter"    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"    xmlns:WPFMediaKit="clr-namespace:WPFMediaKit.DirectShow.Controls;assembly=WPFMediaKit"    >
    <WPFMediaKit:VideoCaptureElement x:Name="videoCapElement"

LoadedBehavior="Manual" DesiredPixelWidth="800" DesiredPixelHeight="600" Stretch="Uniform" FPS="24" />

</UserControl>

 

Then I have this control inside a parent control like this:

<Window x:Class="MainWindow"

...

>

...

        <Grid x:Name="G_CapturePresenter" Style="{DynamicResource S_CapturePresenterGrid}" >            <capturePresenter:CapturePresenter x:Name="M_capturePresenter" />        </Grid>

...

</Window>


The code to start capture is:

public void SetSource(string deviceName) {

videoCapElement.Stop();
DsDevice device = GetVideoDeviceByName(deviceName);

if (device != null) {

videoCapElement.VideoCaptureSource = device.Name;

videoCapElement.Play();

}

}

 

This works fine but if I change DesiredPixelHeight or DesiredPixelWidth before start capture, it is created a window with title "ActiveMovie Window".

Anyone knows how to hide this window or why it is created?

 

Thanks.

Nov 28, 2012 at 12:36 PM

hello together

i have the same problem.

Did you find a solution?

 

br

Nov 28, 2012 at 12:51 PM

Hello,

I did not find a solution yet. I used a control from Expression Encoder SDK to display captured video.