Troubleshoot trying to get current playing music details RRS feed

  • Question

  • Hello! I am making a Windows 8.1 store app that gets the current playing song details(artist & song title) from the Music app. I tried using the SystemMediaTransportControls class in order to get the details but it does not recognise the song. My current using code is :

    SystemMediaTransportControls control = SystemMediaTransportControls.GetForCurrentView(); control.DisplayUpdater.Type = MediaPlaybackType.Music; songBlock.Text = control.DisplayUpdater.MusicProperties.Artist;

    In addition, when I try the :


    ...the anwer is "Closed" even if there is a current song playing

    Thanks in advance!!

    Wednesday, May 7, 2014 11:04 AM

All replies

  • 1) Is the media element connected to the Transport controls using AreTransportControlsEnabled="True"?

    2) What does the MediaElement say at the same time about the status of the music?

    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Wednesday, May 7, 2014 7:25 PM