C1MediaPlayer Task-Based Help > Turning Off Autoplay |
By default, the C1MediaPlayer control will autoplay audio files; however, you can turn this feature off by setting the C1MediaPlayer.AutoPlay property to False.
At Design Time
To turn off autoplay, complete the following steps:
In XAML
To turn off autoplay, add AutoPlay="False" to the <c1mediaplayer:C1MediaPlayer> tag so that the markup resembles the following:
<c1mediaplayer:C1MediaPlayer Name="C1MediaPlayer1" AutoPlay="False">
In Code
To turn off autoplay, complete the following steps:
Visual Basic |
Copy Code
|
---|---|
C1MediaPlayer1.AutoPlay = False
|
C# |
Copy Code
|
---|---|
c1MediaPlayer1.AutoPlay = false;
|