jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.33k stars 223 forks source link

False-positive "Media cannot be played by this device" #1389

Open NixyJuppie opened 1 month ago

NixyJuppie commented 1 month ago

Describe the bug

When I try to play video in an external player (VLC) a popup appears saying "Media cannot be played by this device", VLC is not even launched. If I copy the stream link of the movie into VLC, the movie works without a problem. The error occurs only with some videos, I have transcoding disabled on the server.

Codec information (ERROR):
Codec information (OK):

Logs

05-17 11:15:21.847 20448 20448 E MediaSourceResolver: Cannot create JellyfinMediaSource
05-17 11:15:21.847 20448 20448 E MediaSourceResolver: java.lang.IllegalArgumentException: No play method found for <REDACTED> (436c4a1f-0f64-ed6b-5bb6-4fcaf764c167)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at org.jellyfin.mobile.player.source.JellyfinMediaSource.<init>(SourceFile:352)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at org.jellyfin.mobile.player.source.MediaSourceResolver.resolveMediaSource-tZkwj4A(SourceFile:559)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at org.jellyfin.mobile.player.source.MediaSourceResolver$resolveMediaSource$1.invokeSuspend(SourceFile:21)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at y5.a.resumeWith(SourceFile:9)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.c(SourceFile:57)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.b(SourceFile:16)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.l.resumeWith(SourceFile:23)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at y5.a.resumeWith(SourceFile:32)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.c(SourceFile:57)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.b(SourceFile:16)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.l.resumeWith(SourceFile:23)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at y5.a.resumeWith(SourceFile:32)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.c(SourceFile:57)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.b(SourceFile:16)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.l.resumeWith(SourceFile:23)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at y5.a.resumeWith(SourceFile:32)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.c(SourceFile:57)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.m.b(SourceFile:16)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at k5.l.resumeWith(SourceFile:23)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at y5.a.resumeWith(SourceFile:32)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at Q5.N.run(SourceFile:113)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at android.os.Handler.handleCallback(Handler.java:958)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at android.os.Handler.dispatchMessage(Handler.java:99)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at android.os.Looper.loopOnce(Looper.java:230)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at android.os.Looper.loop(Looper.java:319)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at android.app.ActivityThread.main(ActivityThread.java:8919)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at java.lang.reflect.Method.invoke(Native Method)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)
05-17 11:15:21.847 20448 20448 E MediaSourceResolver:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
05-17 11:15:21.849  1757  1868 D RenderEngine: [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer  at index 0
05-17 11:15:21.849  1757  1868 D RenderEngine: [SEC_GC_CMN_SF_EFFECTS] drawLayersInternal,1279, Rendering layer org.jellyfin.mobile/org.jellyfin.mobile.MainActivity$_20448#298282 at index 1
05-17 11:15:21.851 20448 20448 I Toast   : show: caller = org.jellyfin.mobile.bridge.ExternalPlayer$initPlayer$1.invokeSuspend:172 
05-17 11:15:21.852 20448 20448 I Toast   : show: isDexDualMode = false
05-17 11:15:21.852 20448 20448 I Toast   : show: contextDispId = 0 mCustomDisplayId = -1 focusedDisplayId = 0 isActivityContext = true
05-17 11:15:21.854  2801  3986 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1281 com.android.server.notification.sec.DisplayToast.sendIntentForToastDumpLog:156 com.android.server.notification.sec.DisplayToast.outFile:106 com.android.server.notification.sec.DisplayToast.out:62 com.android.server.notification.NotificationManagerService$15.enqueueToastForDex:5125 
05-17 11:15:21.854  1757  1844 I SurfaceFlinger: id=298287 createSurf, flag=84004, WindowToken{d9c1f0d type=2005 android.os.Binder@1f5d5a4}#298287
05-17 11:15:21.855  3953  3953 D FaceWidgetPositionAlgorithm: getTopMargin scale = 1.4596088, clockContainerHeight = 394, scaleMarginY = -62
05-17 11:15:21.868  1757  1757 I Layer   : Layer [WindowToken{d9c1f0d type=2005 android.os.Binder@1f5d5a4}#298287] hidden!! flag(0)
05-17 11:15:21.879  3953  3953 D FaceWidgetPositionAlgorithm: getTopMargin scale = 1.4596088, clockContainerHeight = 394, scaleMarginY = -62
05-17 11:15:21.885  3953  3953 I AppIconSolution: return adaptive icon for org.jellyfin.mobile, isNight = true
05-17 11:15:21.889  3953  3953 V ToastPresenter: yOffset = 168
05-17 11:15:21.889  3953  3953 V ToastPresenter: Text: Nedi in android.widget.ToastPresenter@e720cf0

Application version

2.6.1

Where did you install the app from?

Google Play

Device information

Samsung Galaxy S23 Utlra

Android version

Android 14, One UI 6.1

Jellyfin server version

10.9.1

Which video player implementations does this bug apply to?