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

[Feature request] Single track looping #475

Closed
farahnur42 opened this issue Sep 20, 2019 · 31 comments
Closed

[Feature request] Single track looping #475

farahnur42 opened this issue Sep 20, 2019 · 31 comments
Labels
feature request This is a request for the addition of some feature. good first issue This issue is a low hanging fruit perfect for new contributors and shouldn't take too much time.

Comments

@farahnur42
Copy link

As it stands right now the loop button isn't looping the track(s) and is stopping after a single play each. Not sure if this is a bug or intended behaviour of the looping functionality but it'd help a lot for someone like me who tends to keep songs on repeat for extended periods of time.

@nukeop nukeop added the feature request This is a request for the addition of some feature. label Sep 20, 2019
@mahimshridhar
Copy link
Contributor

Can i take this ?

@nukeop
Copy link
Owner

nukeop commented Sep 30, 2019

Sure! I haven't started working on it yet. If you have any questions, feel free to ask me here.

@mahimshridhar
Copy link
Contributor

Any suggestions on how do I solve this?

@nukeop
Copy link
Owner

nukeop commented Sep 30, 2019

What happens after a song is finished playing is controlled here:

There is already a check that handles looping the queue after we're done playing the last song. You could look at this code, introduce a new setting, and reset the current song based on that.

@mahimshridhar
Copy link
Contributor

nuclear_install_1 is up-to-date
Starting nuclear_dev_1 ... error

ERROR: for nuclear_dev_1 Cannot start service dev: error gathering device information while adding custom device "/dev/snd": no such file or directory

ERROR: for dev Cannot start service dev: error gathering device information while adding custom device "/dev/snd": no such file or directory
ERROR: Encountered errors while bringing up the project.

I got this error while running docker-compose up dev and im not able to resolve this, can you please help me?

@nukeop
Copy link
Owner

nukeop commented Sep 30, 2019

What system is this? And what sound api?

@mahimshridhar
Copy link
Contributor

im on macOS 10.14.5

@nukeop
Copy link
Owner

nukeop commented Oct 1, 2019

Ok, as a temporary workaround you can try using the old method of running the dev environment:

$ npx i -g lerna
$ lerna bootstrap
$ lerna run start

@mahimshridhar
Copy link
Contributor

Im sorry, should i modify package.json for this to work? "lerna run start" wont work, it gives me:
lerna notice cli v3.16.4
lerna success run No packages found with the lifecycle script 'start'

@nukeop
Copy link
Owner

nukeop commented Oct 1, 2019

In this case, you can cd to packages/app and run npm start. I have no idea why lerna would fail to see the script in package.json.

@nukeop nukeop added the good first issue This issue is a low hanging fruit perfect for new contributors and shouldn't take too much time. label Oct 1, 2019
@mahimshridhar
Copy link
Contributor

mahimshridhar commented Oct 2, 2019

ok this command is working but some reason it is stuck at loading,
Screen Shot 2019-10-02 at 11 57 54 AM

@nukeop
Copy link
Owner

nukeop commented Oct 2, 2019

Look here: #480 (comment)

I will update the dependencies soon to resolve this.

@mahimshridhar
Copy link
Contributor

Got it.

@mahimshridhar
Copy link
Contributor

I got another dependency issue after taking a pull.
Screen Shot 2019-10-03 at 9 18 33 AM

@mahimshridhar
Copy link
Contributor

hey @nukeop any idea about this or did i mess up anything ?

@nukeop
Copy link
Owner

nukeop commented Oct 3, 2019

Hm, I doubt it's something that you did. I'll do some work later today to at least fix the build and then you could try again...

@mahimshridhar
Copy link
Contributor

hey @nukeop sorry to bother you again but im still getting the above error.

@nukeop
Copy link
Owner

nukeop commented Oct 9, 2019

No problem. Maybe try cloning anew and reinstalling the dependencies? And btw, what version of node/npm are you using?

@mahimshridhar
Copy link
Contributor

I tried reinstalling dependencies, didn't work. node version is 11.10.1 npm version is 6.9.0

@nukeop
Copy link
Owner

nukeop commented Oct 9, 2019

If you haven't yet, maybe try doing npm i --save-dev @babel/helper-remap-async-to-generator in packages/app?

@mahimshridhar
Copy link
Contributor

weird part is im getting the same error even after installing @babel/helper-remap-async-to-generator

@nukeop
Copy link
Owner

nukeop commented Oct 9, 2019

In my case this package is correctly installed along with other dependencies. Does it exist at packages/app/node_modules/@babel?

@mahimshridhar
Copy link
Contributor

yes it exists and i just deleted and cloned the repo again but that issue wont go

@EmberCS15
Copy link

EmberCS15 commented Oct 9, 2019

  1. I was looking at the UI. There is a repeat symbol for playlist/queue looping. Is there any such symbol for single track looping (Like a 1 on top of the repeat symbol)?

@nukeop
Copy link
Owner

nukeop commented Oct 10, 2019

Here's the list of all icons: https://react.semantic-ui.com/elements/icon/

There's no icon that suggests single track looping, but we could instead combine the normal repeat icon and the unicode symbol ❶.

@marko-ignjatovic
Copy link

Is someone working on this issue?

@nukeop
Copy link
Owner

nukeop commented Mar 21, 2020

Nope, I don't think so, would you like to try?

@marko-ignjatovic
Copy link

Yes, thank you

@marko-ignjatovic
Copy link

if (this.props.settings.loopAfterTrackEnd){
  this.props.actions.rerollTrack(musicSource, selectedStream, track);
}

Hmm, I am not sure why but this will work only for one time.

@Dola-Shuvi
Copy link
Contributor

I would suggest using the UPDATE_PLAYBACK_PROGRESS action from player.js. You could dispatch an UPDATE_PLAYBACK_PROGRESS action with the progress and seek values set to zero like here:

dispatch(updatePlaybackProgress(0, 0));

This restarts the track from the beginning and can be done multiple times.

@nukeop
Copy link
Owner

nukeop commented Mar 23, 2020

Reroll is for finding alternate streams if the one pulled by default is inaccurate (e.g. wrong video/version of the song, etc). Mongogamer's advice is accurate, just make sure that track end events are triggered (last.fm scrobbling etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request This is a request for the addition of some feature. good first issue This issue is a low hanging fruit perfect for new contributors and shouldn't take too much time.
Projects
None yet
Development

No branches or pull requests

6 participants