none
[W8.1][WP8.1][C++][C#] How to route the audio of MediaElement to speakerphone.

    Question

  • The following is the MedaiElement in XAML:

    <MediaElement Name="meAudio" AudioCategory="Communications" Volume="1"/>

    In code behind:

    meAudio.SetMediaStreamSource(myMediaSource);

    It works fine, but the audio is routed to the handset on Windows Phone 8.1.  Please note that AudioCategory must be Communications in order to make this work.  

    How can the audio in this scenario be routed to the speakerphone of WP8.1?


    Hong

    Tuesday, March 21, 2017 3:39 AM

All replies

  • Hi Hong,

    I create a windows phone 8.1 app and run it on the windows phone 10, the audio is routed to the speakerphone. Now I don't have a windows phone 8.1 device, and I will try to find one to test. 

    Besides, could you tell me your windows phone 8.1 device type?

    Best regards,

    Breeze


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, March 23, 2017 3:49 AM
    Moderator