none
How to detect 'project my screen' is running on window phone or if it connected to a wireless display?

    Question

  • Hi 

    I have a requirement to stop playing DRMed video content on PC or compatible device.

    so I want to detect this two status:

    1.  if  "Project My Screen"is running when the winphone device connected to PC.

    for this situation,I only found a way to detect if the usb cable plugged by a api named "DeviceStatus.PowerSource" which can get the status if the winphone device is plugged in to an external power source, such as being docked to a computer or connected to a power supply.

    DeviceStatus.PowerSource: https://msdn.microsoft.com/en-us/library/windows/apps/microsoft.phone.info.devicestatus.powersource(v=vs.105).aspx

    2. if the winphone has been connected to a wireless display?

    for this situation, I found i can detect if the device of a wireless display existed by "Windows::Devices::Enumeration::DeviceWatcher", but I do not find a way to detect if it has been connected to the phone as a external display.

    Please help to solve it.

    Thanks very much!



    • Edited by pipihust Tuesday, May 10, 2016 9:19 AM
    Tuesday, May 10, 2016 9:18 AM