CastingDevicePicker doesn't find the emulator

Denys Huska 0 Reputation points
2023-01-30T11:48:52.72+00:00

I want to stream video to the remote device in UWP C#. I use a MediaElement and CastDevicePicker. I did everything following the article - https://learn.microsoft.com/en-us/windows/uwp/audio-video-camera/media-casting. CastDevicePciker doesn't find the emulator (screenshot - https://ibb.co/5sgLyq3). Ping to the device with the application is successful, and ping to the emulator is successful as well. So, I think that the Device with the application and the emulator is on the same local network.

What I am doing wrong?

I try to get a connection with the emulator, but nothing happened.

I use a Microsoft Emulator - https://apps.microsoft.com/store/detail/microsoft-emulator/9N0TN65P5BF6?hl=en-us&gl=us

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,233 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 31,766 Reputation points Microsoft Vendor
    2023-01-31T02:12:21.67+00:00

    Hello,

    Welcome to Microsoft Q&A!

    This is expected behavior. Based on the document- CastingDevice object represents a physical device that is capable of supporting casting connections and rendering media content sent to it. When you are trying to use CastingDevicePicker to pick an emulator, it is not considered as a CastingDevice object. So the emulator is not listed. Please try to use a physical device to test.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments