Giter VIP home page Giter VIP logo

Comments (1)

gxuamethyst avatar gxuamethyst commented on June 30, 2024

你好,感谢关注。
请问你是看了这篇博文里操作的吗,https://gxuamethyst.tech/post/use-cellphone-to-controll-pc-music-player/
之前我域名换了,这个repo的描述没更新。

我这,我想用windows系统都是可以的,我不太确定你那边是怎么操作的。

如果你是用浏览器来测试的话,我这 PHP 代码(如下)里 HTTP 请求方式用的是 POST 方法,浏览器里只能实现 GET 请求,所以我猜你说的不行是这个原因。

<?php
/* persional music controller */

if (isset($_POST['action'])) {
	
    $action = $_POST['action'];

    if ($action === "start") {
        exec("start.vbs");
        exec("play.vbs");
    } else if ($action === "last") {
        exec("last.vbs");
    } else if ($action === "next") {
        exec("next.vbs");
    } else if ($action === "play") {
        exec("play.vbs");
    } else if ($action === "volume_up") {
        exec("volume_up.vbs");
    } else if ($action === "volume_down") {
        exec("volume_down.vbs");
    }
}

echo "{}";

from musiccontroller.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.