Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic MPD HTTP audio streaming support #123

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Basic MPD HTTP audio streaming support #123

wants to merge 1 commit into from

Conversation

anthonygclark
Copy link

This is very rudimentary as I am not too versed in JS. My attempt was to
connect to an HTTP stream supported by MPD (i.e., no unofficial code),
providing actions like play/pause to connected with the ympd buttons.

ASSUMED:

  1. You have an active stream - this will always attempt to connect
  2. It's always at port 5443

TBD:

  1. Dynamically initialize the httpAudioStream variable (connect) only
    when a specified output if present. Can we detect mpd output type via
    ympd?

  2. Port Setting

  3. Timeout support. Currently, the stream will continue even if ympd is
    stopped but the webpage still exists.

This is very rudimentary as I am not too versed in JS. My attempt was to
connect to an HTTP stream supported by MPD (i.e., no unofficial code),
providing actions like play/pause to connected with the ympd buttons.

ASSUMED:

1) You have an active stream - this will always attempt to connect
2) It's always at port 5443

TBD:

1) Dynamically initialize the httpAudioStream variable (connect) only
when a specified output if present. Can we detect mpd output type via
ympd?

2) Port Setting

3) Timeout support. Currently, the stream will continue even if ympd is
stopped but the webpage still exists.
@SuperBFG7
Copy link
Contributor

Hi @anthonygclark, have a look at my local_play branch. It's an improvement of another atempt. I just didn't have the time to submit a PR yet.
https://github.com/SuperBFG7/ympd/tree/local_play

@anthonygclark
Copy link
Author

Super,

I just built your local_play branch (and others), and none of my (Linux) browsers played anything. Mine still functions. Any clues?

@SuperBFG7
Copy link
Contributor

Did you use the additional toolbar button to start the local playback?
Playing and playing locally in the browser are decoupled.
Did you adjust the port in the config dialog? (if you are using something other than the mpd default of 8000)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants