-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Vlc player resume does not work #4027
Comments
There is only code that sends the resume position for MX Player and Vimu: jellyfin-androidtv/app/src/main/java/org/jellyfin/androidtv/ui/playback/ExternalPlayerActivity.java Lines 347 to 350 in 30fcb19
So this is not a bug, someone will need to add additional code to support VLC. |
I tried to debug it locally. Unfortunately, |
This issue is about starting VLC, not returning from VLC. |
Are you sure? The following does work w/o any changes:
AFAIIU the issue is only that the position will not be persisted after stopping VLC -- also the popup |
From the issue description I assumed they meant starting playback will not resume from a specific position and the constants indicated we don't set anything specifically for VLC. Although they may overlap with extras VLC also supports. |
It is exactly like this, there is no resume button in the UI |
There not being a resume button is an entirely different thing so I misinterpreted the original issue report. In this case it likely did not save the position properly like @tobiasgiese mentioned. |
I deployed the latest |
If I set the component in external.setComponent(new ComponentName("org.videolan.vlc", "org.videolan.vlc.gui.video.VideoPlayerActivity")); Edit: And here is a closed VLC bug that is related to this issue: https://code.videolan.org/videolan/vlc-android/-/issues/2776 |
My best guess is that we should migrate from the onActivityResult function to the newer registerForActivityResult API. We may also need to add a |
I just realized I was using a beta version of VLC (3.6.0 Beta 6) which includes a bugfix to the issue you linked. The current version (3.5.4) on the playstore does not include the fix. So the PR resolves this issue in version 3.6.x, but it doesn’t address it in the current version due to the upstream issue. |
Oh that makes sense, so it's really an upstream issue then. |
|
Ah wait, the fix #4032 is not installed on my Android TV. In Android Studio it does work as expected 👍🏻 Edit: Double-checked by installing the latest |
I found another issue, maybe something that is rather another bug or even not fixable. If I return to Home instead of back to Jellyfin the position gets lost. Is this a known bug? I am not sure if this is even able to cover. WDYT @nielsvanvelzen @MichaelRUSF |
When you press the home button you won't return to the Jellyfin app so we never receive any information back. This is a limitation of the Android platform and not something we can do anything about. |
Okay, I thought so too. Is there a way to poll periodically to set the current position? |
No that's also not something we can reliably do;
|
Okay, thanks for clarification |
Describe the bug
Since the new playback code it is no longer possible to resume while using an external player (e.g., VLC).
This might be a dupe of #1208, but this issue is already closed without any reaction to questions.
Logs
No response
Application version
0.17.5
Where did you install the app from?
None
Device information
Sony XH90
Android version
Android TV
Jellyfin server version
10.9.11
The text was updated successfully, but these errors were encountered: