jellyfin-archive / jellyfin-android-original

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

OPUS keeps pausing and having to resync #358

Open geekboy01 opened 4 years ago

geekboy01 commented 4 years ago

When playing any Opus file when the app is back-grounded (and some when foreground) keeps pausing. This does not happen on any other format.

Application: 1.0.1

end of log [2020-06-17 00:02:36.737 +00:00] [WRN] [5] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 206 to "192.168.1.1". Time (slow): 0:00:01.192744. "http://192.168.1.50:8096/Audio/8c2ee4344f49de216dd95586d02e7cff/universal?UserId=f04c82ee365046f68d0c67fd49377523&DeviceId=b637fb2fb0ed7e6a&MaxStreamingBitrate=140000000&Container=opus,mp3%7Cmp3,aac,m4a,m4b%7Caac,flac,webma,webm,wav,ogg&TranscodingContainer=ts&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1592351806060&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false" [2020-06-17 00:02:46.914 +00:00] [WRN] [58] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:00.8757988. "http://192.168.1.50:8096/Sessions/Playing/Progress" [2020-06-17 00:02:56.790 +00:00] [WRN] [16] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:00.5086359. "http://192.168.1.50:8096/Sessions/Playing/Progress" [2020-06-17 00:03:17.844 +00:00] [WRN] [5] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:01.3273468. "http://192.168.1.50:8096/Sessions/Playing/Progress" [2020-06-17 00:03:27.286 +00:00] [WRN] [16] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.1.1". Time (slow): 0:00:00.5243788. "http://192.168.1.50:8096/Sessions/Playing/Progress"

Media info General Complete name : 01 Keep My Faith.opus Format : Ogg File size : 5.06 MiB Duration : 5 min 6 s Overall bit rate : 138 kb/s Album : Spirit of Music Album/Performer : Ziggy Marley & The Melody Makers Part : 1 Part/Total : 1 Track name : Keep My Faith Track name/Position : 1 Track name/Total : 15 Performer : Ziggy Marley & The Melody Makers Genre : Reggae Recorded date : 1999-07-13 Writing application : Lavf58.29.100 BPM : 118 Cover : Yes MUSICBRAINZ_RELEASEGROUPID : 1740d03a-ee1d-3b16-8320-0a00d45166e6 ORIGINALDATE : 1999-07-13 ORIGINALYEAR : 1999 RELEASETYPE : album ALBUMARTISTSORT : Marley, Ziggy & Melody Makers, The ASIN : B00000JG46 RELEASECOUNTRY : US RELEASESTATUS : official SCRIPT : Latn ARTISTSORT : Marley, Ziggy & Melody Makers, The ARTISTS : Ziggy Marley & The Melody Makers MUSICBRAINZ_RELEASETRACKID : 94343e2a-7cb0-30b4-8c9c-73419064269f WEBSITE : http://www.melodymakers.com/ KEY : B ACOUSTID_ID : 89e6f955-f8e8-4d36-85f1-a1b0df908687

Audio ID : 2346336820 (0x8BDA4234) Format : Opus Duration : 5 min 6 s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Compression mode : Lossy Writing library : Lavf58.29.100 Language : English

geekboy01 commented 4 years ago

I decided to run a test and build the client with exoplayer and had the same results with pauses happening on only Opus files.

geekboy01 commented 4 years ago

Jellyfin-Android: 1.0.2

This only happens on .opus files when the phone locks. All other formats I have flac, mp3, m4a, ogg do not exhibit the same problem.

[2020-08-14 16:52:42.897 +00:00] [INF] [36] Emby.Server.Implementations.HttpServer.HttpListenerHost: WS "::ffff:192.168.0.100" closed [2020-08-14 16:52:56.552 +00:00] [WRN] [36] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 200 to "192.168.0.203". Time (slow): 0:00:01.1730804. "http://moya:8096/System/Logs" [2020-08-14 16:53:17.186 +00:00] [INF] [36] Emby.Server.Implementations.HttpServer.HttpListenerHost: WS "::ffff:192.168.0.100" request [2020-08-14 16:53:17.606 +00:00] [WRN] [33] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.0.100". Time (slow): 0:00:00.5620886. "http://192.168.0.50:8096/Sessions/Playing/Progress" [2020-08-14 16:53:27.675 +00:00] [WRN] [35] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.0.100". Time (slow): 0:00:00.6194773. "http://192.168.0.50:8096/Sessions/Playing/Progress" [2020-08-14 16:53:31.805 +00:00] [WRN] [33] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "::ffff:192.168.0.100" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake." [2020-08-14 16:53:31.807 +00:00] [INF] [33] Emby.Server.Implementations.HttpServer.HttpListenerHost: WS "::ffff:192.168.0.100" closed [2020-08-14 16:56:08.475 +00:00] [INF] [5] Emby.Server.Implementations.HttpServer.HttpListenerHost: WS "::ffff:192.168.0.100" request [2020-08-14 16:56:09.039 +00:00] [WRN] [27] Emby.Server.Implementations.HttpServer.HttpListenerHost: HTTP Response 204 to "192.168.0.100". Time (slow): 0:00:00.5701124. "http://192.168.0.50:8096/Sessions/Playing/Progress" [2020-08-14 16:56:25.503 +00:00] [WRN] [5] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS "::ffff:192.168.0.100" error receiving data: "The remote party closed the WebSocket connection without completing the close handshake." [2020-08-14 16:56:25.505 +00:00] [INF] [5] Emby.Server.Implementations.HttpServer.HttpListenerHost: WS "::ffff:192.168.0.100" closed