Overlapping Videos with Effects : MediaElement « Windows Presentation Foundation « C# / C Sharp






Overlapping Videos with Effects

Overlapping Videos with Effects
   
<Canvas xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <MediaElement Source="C:\video.wmv" Opacity="0.5">
    <MediaElement.Clip>
      <EllipseGeometry Center="220,220" RadiusX="220" RadiusY="220"/>
    </MediaElement.Clip>
    <MediaElement.LayoutTransform>
      <RotateTransform Angle="180"/>
    </MediaElement.LayoutTransform>
  </MediaElement>
  <MediaElement Source="C:\video.wmv" Opacity="0.5">
    <MediaElement.Clip>
      <EllipseGeometry Center="220,220" RadiusX="220" RadiusY="220"/>
    </MediaElement.Clip>
  </MediaElement>
</Canvas>

   
    
    
  








Related examples in the same category

1.Using MediaElement for AudioUsing MediaElement for Audio
2.Simple Media PlayerSimple Media Player
3.Play mp3 filePlay mp3 file
4.Play wav filePlay wav file
5.Declarative PlaybackDeclarative Playback
6.Play a Media FilePlay a Media File
7.Sound And Video Playback in CodeSound And Video Playback in Code
8.Play with MediaPlayerPlay with MediaPlayer
9.Play Audio AsynchronouslyPlay Audio Asynchronously
10.Play System SoundsPlay System Sounds