Window phone uses a mobile phone to control multimedia playback of the computer

Source: Internet
Author: User

In order to use the computer to watch the movie convenient control, I suddenly think, do a mobile app to remotely adjust the volume on the computer through the wireless network. After the success of the attempt, I thought, just the volume seems monotonous, the play/pause, the last one, the next, and other multimedia control function Plus, so fun.
Here is a brief introduction to the principle of the whole solution of the source code I will share to everyone, for reference.

First say the server, because the control command is relatively simple, I directly with a WPF application to complete, so convenient to run, with the socket to communicate more trouble, I use WCF to do the service, using Webservicehoset, let WP mobile phone client in Http-post way to invoke.
This believes that everyone will, there is a core, is how to control the multimedia function of the system? In fact, you should find that on your laptop keyboard, there is a row of function buttons, you can press these keys to adjust the volume, control playback, the last song, etc., as well as a variety of function switches, such as turning on/off the wireless function.

That is, as long as the code can simulate the issue of these keys to achieve control, it is necessary to use the Win32 API in the SendInput function. In the initial attempt, I put the SendInput function into the managed code, but the call did not respond, I do not know whether it is not I import wrong.

SOURCE Download: http://code.662p.com/view/10075.html

<ignore_js_op>

2015-1-27 10:39 upload Download attachment (66.25 KB)

<ignore_js_op>
Detailed Description: http://wp.662p.com/thread-8335-1-1.html

Window phone uses a mobile phone to control multimedia playback of the computer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.