<p>The MediaElement doesn't support rounded corners (radiusx, radiusy). Should I use a VideoBrush on a Rectangle with rounded corners?</p>

[{'answer_id': 31454, 'author': 'Jonas Follesø', 'author_id': 1199387, 'author_profile': 'https://Stackoverflow.com/users/1199387', 'pm_score': 3, 'selected': True, 'text': '<p>Yeah - In a way you\'re both asking and answering the question yourself... But that is one of the two options I can think of. The reasons that might be a problem is that you lose some of the features/control you get from the MediaElement control. Another option is to do this:</p>\n\n<ol>\n<li>Add your MediaElement to your page.</li>\n<li>Draw a Rectangle on top of it and set wanted corner radius</li>\n<li>Right click the rectangle in Blend and choose "Create Clipping Path"</li>\n<li>Apply the clipping path to your MediaElement</li>\n</ol>\n\n<p>That way you\'re still using a MediaElement control, but you can "clip" away what ever you want to get the desired rounded effect.</p>\n\n<p>This example shows a clipped MediaElement. I know it\'s not easy to picture the vector path, but if you open it open in Blend you will see a rounded MediaElement.</p>\n\n<pre><code>&lt;MediaElement \n        Height="132" Width="176" Source="Egypt2007.wmv" \n        Clip="M0.5,24.5 C0.5,11.245166 11.245166,0.5 24.5,0.5 L151.5,0.5\n              C164.75484,0.5 175.5,11.245166 175.5,24.5 L175.5,107.5 C175.5,\n              120.75484 164.75484,131.5 151.5,131.5 L24.5,131.5 C11.245166,\n              131.5 0.5,120.75484 0.5,107.5 z"/&gt;\n</code></pre>\n'}, {'answer_id': 62177, 'author': 'Jim Lynn', 'author_id': 6483, 'author_profile': 'https://Stackoverflow.com/users/6483', 'pm_score': 0, 'selected': False, 'text': '<p>Using a rounded rectangle and a VideoBrush doesn\'t lose you any features/control over using a displayed MediaElement - since the element has to be in the Xaml anyway, you can control it using the usual Play/Pause/Stop methods, except that the playback happens in your rectangle. Using a clip region is a little unwieldy because it\'s harder to resize the region. A Rectangle is better because you have flexibility of layout.</p>\n\n<pre><code>&lt;MediaElement x:Name="myElement" Source="clip.wmv" Visibility="Collapsed"/&gt;\n&lt;Rectangle RadiusX="10" RadiusY="10" Width="640" Height="480"&gt;\n    &lt;Rectangle.Fill&gt;\n        &lt;VideoBrush Source="myElement" Stretch="Uniform"/&gt;\n    &lt;/Rectangle.Fill&gt;\n&lt;Rectangle/&gt;\n</code></pre>\n'}, {'answer_id': 65345, 'author': 'caryden', 'author_id': 313, 'author_profile': 'https://Stackoverflow.com/users/313', 'pm_score': 0, 'selected': False, 'text': '<p>The clip path with give you "hard" edges - you could also use an OpacityMask as well (though I imagine this requires much more processing power).</p>\n'}, {'answer_id': 33804268, 'author': 'Karthic G', 'author_id': 4264464, 'author_profile': 'https://Stackoverflow.com/users/4264464', 'pm_score': 0, 'selected': False, 'text': '<p>Try this</p>\n\n<pre><code> &lt;Border CornerRadius="8"  BorderBrush="Black" Background="Black" BorderThickness="3"&gt;\n &lt;MediaElement   HorizontalAlignment="Center" VerticalAlignment="Top" Stretch="Fill" x:Name="Player" Source="/Assets/Videos/x.mp3" /&gt;\n &lt;/Border&gt;\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/31346', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5/']