I try to build a Windows 8.1 app with background audio, and when the app goes off screen the music is ok, but no SystemMediaTransportControls
shows although I set it in code:
SystemMediaTransportControls smtc;
public MainPage()
{
this.InitializeComponent();
mediaElement.AudioCategory = AudioCategory.BackgroundCapableMedia;
smtc = SystemMediaTransportControls.GetForCurrentView();
smtc.IsPauseEnabled = true;
smtc.IsPlayEnabled = true;
smtc.ButtonPressed += smtc_ButtonPressed;
}
I have a computer with a standard keyboard and mouse.
Hmm, that's not what I am seeing. Doing this:
The controls are visible, but they aren't visible when I navigate away from the app.
Am I missing something?