I am playing an audio using the MediaElement
. The MediaElement
is created as followed in XAML
:
<MediaElement x:Name="audio" HorizontalAlignment="Left" Height="50" VerticalAlignment="Top" Width="50" Source="Resources/music.mp3"/ >
The audio is played in the constructor as follows:
audio.play();
This application works perfectly by running via debugging F5
. However when I created a setup and installed on the machine, the application is running, but the music is not played. Please help!