How to use "Windows.Media.Miracast" API to develop UIBC function (UWP app)

Damon Pan 86 Reputation points
2022-12-01T07:36:45.727+00:00

Hi Microsoft team,

I am developing a UWP app, the function is screen share sink and able to send UIBC to source side. Source side is Android app.

  • The screen share function works well by using "Windows.Media.Miracast" API.
  • But I don't know which API supports UIBC function.

I want to query which API is used for sending UIBC to source side? such as: send mouse and keyboard event to source side.

Or no public API to support UIBC?

Universal Windows Platform (UWP)
{count} vote

Accepted answer
  1. Junjie Zhu - MSFT 17,826 Reputation points Microsoft Vendor
    2022-12-07T08:15:27.327+00:00

    Hi @Damon Pan ,

    In the Windows.Media.Miracast namespace I found you can get input device through MiracastReceiverConnection, and MiracastReceiverInputDevices Class can return a keyboard, you can try to implement the UIBC function through this.

    Thank you,
    Junjie


    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.