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

No automatic reproduction of next songs in the Flatpak version #46

Closed
ghost opened this issue Mar 30, 2022 · 12 comments
Closed

No automatic reproduction of next songs in the Flatpak version #46

ghost opened this issue Mar 30, 2022 · 12 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Mar 30, 2022

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Installation Source/Method

  • Package Manager: <e.g flatpak/chocolatey>
  • Community Repo: <e.g AUR/appimagehub>
  • Binary Source: <resource_url>

Desktop (please complete the following information):

  • OS: [e.g. archlinux]
  • Version [e.g. v1.0.0]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Version [e.g. v1.0.0]

Additional context
Add any other context about the problem here.

@ghost ghost added the bug Something isn't working label Mar 30, 2022
@ghost
Copy link
Author

ghost commented Mar 30, 2022

When I play a playlist from my library, only the first song plays, the next song doesn't play automatically.

@KRTirtho
Copy link
Owner

Can you run the app from the terminal & then submit the output logs?

@ghost
Copy link
Author

ghost commented Mar 31, 2022

Can you run the app from the terminal & then submit the output logs?

Captura de pantalla de 2022-03-30 22-04-40

@ghost
Copy link
Author

ghost commented Mar 31, 2022

do you mean this?

@KRTirtho
Copy link
Owner

So I checked & it seems like it's only happening with the Flatpak version of Spotube. It might take a little bit of time to get fixed. Meanwhile, you can use the the Spotube AppImage

@ghost
Copy link
Author

ghost commented Mar 31, 2022

Thanks, The AppImage does not have that problem, but, instead almost on Fedora 35, for spotube (installed by Spotube AppImage) to appear in the menu you need to create a .desktop manually.

@KRTirtho
Copy link
Owner

Use appimage-launcher. It'll do this stuff automatically

@KRTirtho KRTirtho changed the title No automatic reproduction of next songs in Fedora 35. No automatic reproduction of next songs in the Flatpak version Apr 25, 2022
@KRTirtho KRTirtho pinned this issue Apr 25, 2022
@prasanth-G24
Copy link

prasanth-G24 commented Apr 28, 2022

@KRTirtho also the shortcut for next/ previous aren't working in the flatpak version. plus it would be really helpful to have a repeat button. thank you for this wonderful app!

@KRTirtho
Copy link
Owner

KRTirtho commented May 2, 2022

Bad news, I just found out the audio engine used for Spotube in Linux (libwinmedia) is archived & deprecated. It hasn't been updated for at least 4 months & now it lost its compatibilty with the latest version of webkit2gtk

Audio Playback is fine mostly except there's an issue with audio file processing stream. The stream should notify when the currently playing track is completed (finished playing) but for some unknown reason it's not firing the event thus playlist position change method movePlaylistByPosition never gets called

_processingStateStreamListener =
player.processingStateStream.listen((event) async {
_logger.v("[Processing State Change] $event");
try {
if (event != ProcessingState.completed) return;
if (_currentTrack?.id != null) {
movePlaylistPositionBy(1);
} else {
await audioSession?.setActive(false);
_isPlaying = false;
_duration = null;
_callAllDurationListeners(null);
notifyListeners();
}
} catch (e, stack) {
_logger.e("PrecessingStateStreamListener", e, stack);
}
});

@KRTirtho
Copy link
Owner

KRTirtho commented May 3, 2022

Well, I did a workaround to fix the issue. Now the playback works fine (Gnome 42). But I won't use the same package for long & will do a permanent replacement to get rid of the issue completely

The fixed version will be available in the nightly build within couple of hours hopefully

@KRTirtho
Copy link
Owner

fixed in the latest release. there will be a little delay for flatpak version as it syncs the repositories once a day

@PranavBhattarai
Copy link

Thank you. Waiting for Flatpak release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants