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

Use LibVLC via WebChimera.js instead of VLC through its HTTP API #20

Merged
merged 20 commits into from
Oct 27, 2015

Conversation

icedream
Copy link
Owner

This closes #17 and #10, finishes two tasks of #2 and actually solves a few additional issues like:

  • Not being able to resume playback from a stopped playlist.
  • Unclear and buggy definition of volume range.
  • Bot just showing "playing next playlist entry" instead of actually showing the title of the next playlist entry.
  • Missing "previous" command to go to previous playlist entry.
  • Missing "loop" command to loop the playlist. (Now exists in form of "loop on"/"loop off")
  • Missing "stop-after" command to stop playback after current track ends.
  • A small bug in ts3query.iced that didn't escape line breaks. (Was in use here for "playlist"/"list" commands which got removed in the process.)

Known issues:

  • Starting with an empty playlist, adding an entry and then typing "next" will automatically play the first entry. This is not really a bug or even an issue but definitely unexpected behavior that is coming from VLC.

- Hopefully fixes audio volume not being set to 50% at startup.
- Volume now is in the range of 0 to 200 (percentage, so goes from 0% to 200% for those numbers).
- Made message displaying volume change display the actual level set.
- We're no longer providing an HTTP interface.
- Now stores metadata info in a separate variable for later retrieval by input MRL.
- Now prints when player reaches end of playlist.
- Now supports toggle-pausing using "pause" command.
- Should fix playlist not being able to kick off on "play" if stopped.
- Removed vlc-api dependency.

Relates to issues #17, #10 and #7 (partially).
Got the documentation wrong here, I was looking up examples and it looked as if calling the on* fields as functions was the right way to go but it was actually not. https://github.com/RSATom/WebChimera.js/blob/64bf4ffc362898e309c8a444c8888ad7b4bfae92/src/JsVlcPlayer.cpp#L90-L102 clearly defines as set-properties here.
Those values are not supposed to be accepted in the first place...
These commands allow going to the previous entry in the playlist.
These commands allow emptying the current playlist. Here another reminder to implement a proper permission system soon!
These commands make the bot print out the current playlist in the channel chat. The current track being played back is printed in bold green font.
This command allows looping the playlist by just passing the command "loop on". Respectively, "loop off" turns off looping again.
This command allows stopping the playlist after the current playlist item is finished.
onEndReached does not just trigger the callback at the end of the playlist but actually at the end of each track. This should have been better documented.
icedream added a commit that referenced this pull request Oct 27, 2015
Use LibVLC via WebChimera.js instead of VLC through its HTTP API.

This closes #17 and fixes #10, finishes two tasks of #2 and actually solves a few additional issues like:

- Not being able to resume playback from a stopped playlist.
- Unclear and buggy definition of volume range.
- Bot just showing "playing next playlist entry" instead of actually showing the title of the next playlist entry.
- Missing "previous" command to go to previous playlist entry.
- Missing "loop" command to loop the playlist. (Now exists in form of "loop on"/"loop off")
- Missing "stop-after" command to stop playback after current track ends.
- A small bug in ts3query.iced that didn't escape line breaks. (Was in use here for "playlist"/"list" commands which got removed in the process.)

Known issues:
- Starting with an empty playlist, adding an entry and then typing "next" will automatically play the first entry. This is not really a bug or even an issue but definitely unexpected behavior that is coming from VLC.
@icedream icedream merged commit 034d12d into develop Oct 27, 2015
@icedream icedream deleted the impl/webchimera branch November 2, 2015 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant