Alpha Chanel (Chroma Key) video transparency

Jan 2, 2011 at 12:00 AM
Edited Jan 2, 2011 at 1:08 AM

Using a customized (derived) SMFPlayer and ColorKeyAlphaEffect Pixel Shader I can make the video transparent where it's green.
Test: added a background image before the <ContentControl x:Name="MediaPresenterElement" in generic.xaml and the background image is visible where the video is transparent.
Goal: I'd like to achieve the same result in my XAML.
Currently the SMFPlayer is not transparent. Any ideas?

<Grid x:Name="LayoutRoot" Background="Red">
    <local:CustomPlayer x:Name="player" />
Jan 2, 2011 at 1:04 AM
Edited Jan 3, 2011 at 6:26 PM

I am answering my own question :-). In generic.xaml made these changes:

<Grid x:Name="PlayerRoot" Background="Black"


<Grid x:Name="PlayerRoot" Background="{TemplateBinding Background}"


<Grid x:Name="LayoutRoot" Background="Red">
  <local:CustomPlayer x:Name="player" Background="#00FFFFFF" />