Re: Re: Any suggestions for implementing some kind of web interf

Home › Forums › General Discussion › Any suggestions for implementing some kind of web interface? › Re: Re: Any suggestions for implementing some kind of web interf

#29220
hello2000
Member

I think that remote interface in libmpg123 only works if it is compiled as a standalone app, for example, on a Linux package – not the case with WiiMC. Plus, at the very least, that remote interface would only control the files played by libmpg123.

About setting up a LAN share and put a file there… I don’t think that’d be the best protocol solution possible: IMO it’d more simple to just code a port listener that listens on e.g. 3.4.5.6:9000 (being 3.4.5.6 the Wii’s IP, and 9000 the port it listens in), and replies with simple commands to the client who made the request on that port.
Here’s a imaginative connection log between the client and WiiMC: 😀


CLIENT (192.168.1.2): Connecting to 192.168.1.3...
CLIENT (192.168.1.2): Connected, sending: 603 (CONTROL_NEXT_TRACK)
Reply from WIIMC (192.168.1.3): 200 (OK)
CLIENT (192.168.1.2): Disconnected.

... 5 minutes later...

CLIENT (192.168.1.2): Connecting to 192.168.1.3...
CLIENT (192.168.1.2): Connected, sending: 660 SD:/Music/Song 1.mp3 (PLAY_FILE SD:/Music/Song 1.mp3)
Reply from WIIMC (192.168.1.3): 200 (OK)
CLIENT (192.168.1.2): Sending: 660 SD:/Music/Song 45.mp3 (PLAY_FILE SD:/Music/Song 45.mp3)
Reply from WIIMC (192.168.1.3): 404 (FILE_NOT_FOUND)
CLIENT (192.168.1.2): Sending: 699 STANDBY (SHUTDOWN FORCE_STANDBY)

As you can see from my stupid example of communication log, the protocol looks like HTTP, but it’s not. And it would allow more than playing control: it could also tell the Wii to shutdown, to eject the disc, etc.

Basically, I have the idea for the protocol in my head but I don’t know how code it. Although not having enough knowledge to code the WiiMC server part, I could code the Windows client in .NET (probably the only language I have real experience with is VB.NET). But for that, someone need to code the server for WiiMC 🙂

jhb50, are you willing to deploy something like described in this thread in your extension pack? It could be a great addition if it’s not too much work (I guess it is).

Regards
Gabriel