I am new to Silverlight application.I want to display video using Mediaelement tag and I used the below code to play video.
Expand|Select|Wrap|Line Numbers
- <Canvas>
- <MediaElement x:Name="mPlayer" Width="640" Height="480" Source="a_video.avi"/>
- <Button x:Name="bPlay" Background="Green" Width="100" Height="45" Canvas.Left="8" Canvas.Top="497" Content="Play" />
- <Button x:Name="bPause" Background="Yellow" Width="100" Height="45" Canvas.Left="112" Canvas.Top="497" Content="Pause"/>
- <Button x:Name="bStop" Background="Red" Width="100" Height="45" Canvas.Left="216" Canvas.Top="497" Content="Stop"/>
- </Canvas>
Please help me how to play video using silverlight mediaelement and mention the steps to play video and where i have to place video to use it in mediaelement source property.
Thanks in advance
Pavani