MPC-HC

Fix Web UI Seeking

I was interested in modifying MPC-HC to allow people to watch things in sync with each other, i.e. pause when someone pauses, seek when someone seeks, etc. I pulled the source from github and began looking for a good way to implement this functionality. I found the source for the web UI component of MPC-HC, which essentially provides an interface for which a web UI can be developed to control MPC-HC. I figured I could make use of this and began testing it when a friend noticed that the seeking in the existing web UI didn’t work. After finding the relevant code in the MPC-HC source I found that it was a simple problem of failing to URL decode the seek parameter sent from the web UI. I submitted a patch which was ultimately merged in and pushed out in version 1.6.6.

As for the original intent of implementing the functionality for synced playback, the MPC-HC developers told me about Syncplay which I have used for months now to much success. The added benefit is that it isn’t specific to any particular media player and is cross-platform.

August 27, 2015
329ce08 — May 23, 2024