Jump to content

Remote playing large playlists make the clients hang


ryancey

Recommended Posts

ryancey

I never managed to remote play playlists from Emby web app to an Android TV with the sideloaded (regular) app. The client just display the loader forever and do nothing. I'm talking about both ~15 tracks albums or ~1k playlists. When tried with my Android phone as target, it works but after a solid 2-3 minutes.

Playing a single track works but takes about 5 seconds. Stopping it is almost instant.

The web app, the phone app, and the TV app all connect to a local network Emby server, with the same host name.

The server is 4.8.0.80 and runs on docker.

Nothing unusual in the logs as far as I can tell. Here are the logs when shuffling favorite songs from the web app, remote controlling the Android app on the TV:

2024-03-20 15:37:42.419 Info Server: http/1.1 POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=277840,297420,276811,295022,274403,280304,276626,294840,273381,292421,272053,294306,275681,272477,276115,294160,283120,270429,281581,283045,278907,293476,281799,271564,269122,299714,269119,267288,273231,270355,293941,278527,279366,281012,293004,276383,277923,281896,269500,295011,267014,272097,275524,268694,293942,279764,267760,281517,267526,292087,293780,267962,281986,280956,275167,274960,281747,295808,300824,295809,287937,295256,272591,275941,294056,280678,295349,270477,274459,276603,267956,276545,279331,296628,270358,295838,277355,274411,276237,268926,281918,273727,281245,277777,295218,278919,275565,280371,268718,291451,296326,279338,281621,266725,279159,279850,267576,295526,274077,272025,281899,275817,272361,268008,293096,270286,272087,277362,280471,270472,267105,290334,279812,283167,281927,284201,279601,275962,283213,277413,293317,288727,280548,297087,279734,278160,270051,282393,269120,276434,295597,273308,270157,281903,293909,267919,269232,279439,266979,277566,271043,283105,276030,276554,266882,267020,300234,295298,271651,294939,279760,272351,279933,291698,273209,283042,280697,275818,278754,294281,293005,281208,280536,275496,268776,278866,283645,279627,275482,270328,296128,278230,274324,276515,281940,281935,280080,282123,275064,282027,267257,280348,297544,290526,274156,272034,297099,270991,282187,291794,281564,273579,280141,274316,290522,269884,270916,292199,272577,282183,279166,279609,277045,271553,279022,271005,299715,268310,275393,279263,276600,296480,279814,295221,267395,280307,269752,288735,295338,271646,274240,282693,275394,273020,267129,269512,270574,292046,270644,277377,271585,293514,267730,269192,267213,295444,276933,279846,281389,283041,268091,277760,300336,276934,296487,282037,281446,293849,291579,294172,274157,274220,278127,276675,282314,274317,267136,299337,294855,268269,280206,267104,276240,294099,277694,292690,267969,275718,283033,272359,268867,278510,271660,279266,266939,281393,295826,269760,270977,277673,268924,282287,293351,279623,279864,274542,300237,293526,293917,282053,293350,300893,295832,294799,282872,292742,269491,292775,271277,296626&PlayCommand=PlayNow&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:37:42.508 Info Server: http/1.1 Response 204 to host2. Time: 89ms. POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=277840,297420,276811,295022,274403,280304,276626,294840,273381,292421,272053,294306,275681,272477,276115,294160,283120,270429,281581,283045,278907,293476,281799,271564,269122,299714,269119,267288,273231,270355,293941,278527,279366,281012,293004,276383,277923,281896,269500,295011,267014,272097,275524,268694,293942,279764,267760,281517,267526,292087,293780,267962,281986,280956,275167,274960,281747,295808,300824,295809,287937,295256,272591,275941,294056,280678,295349,270477,274459,276603,267956,276545,279331,296628,270358,295838,277355,274411,276237,268926,281918,273727,281245,277777,295218,278919,275565,280371,268718,291451,296326,279338,281621,266725,279159,279850,267576,295526,274077,272025,281899,275817,272361,268008,293096,270286,272087,277362,280471,270472,267105,290334,279812,283167,281927,284201,279601,275962,283213,277413,293317,288727,280548,297087,279734,278160,270051,282393,269120,276434,295597,273308,270157,281903,293909,267919,269232,279439,266979,277566,271043,283105,276030,276554,266882,267020,300234,295298,271651,294939,279760,272351,279933,291698,273209,283042,280697,275818,278754,294281,293005,281208,280536,275496,268776,278866,283645,279627,275482,270328,296128,278230,274324,276515,281940,281935,280080,282123,275064,282027,267257,280348,297544,290526,274156,272034,297099,270991,282187,291794,281564,273579,280141,274316,290522,269884,270916,292199,272577,282183,279166,279609,277045,271553,279022,271005,299715,268310,275393,279263,276600,296480,279814,295221,267395,280307,269752,288735,295338,271646,274240,282693,275394,273020,267129,269512,270574,292046,270644,277377,271585,293514,267730,269192,267213,295444,276933,279846,281389,283041,268091,277760,300336,276934,296487,282037,281446,293849,291579,294172,274157,274220,278127,276675,282314,274317,267136,299337,294855,268269,280206,267104,276240,294099,277694,292690,267969,275718,283033,272359,268867,278510,271660,279266,266939,281393,295826,269760,270977,277673,268924,282287,293351,279623,279864,274542,300237,293526,293917,282053,293350,300893,295832,294799,282872,292742,269491,292775,271277,296626&PlayCommand=PlayNow&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-03-20 15:38:06.964 Info Server: http/1.1 POST http://host5:8096/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:38:06.966 Info Server: http/1.1 Response 200 to host6. Time: 2ms. POST http://host5:8096/emby/Sync/data
2024-03-20 15:38:28.845 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:38:28.886 Info Server: http/1.1 Response 200 to host4. Time: 41ms. POST http://host1/emby/Sync/data
[...]
2024-03-20 15:39:34.104 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:34.120 Info Server: http/1.1 Response 200 to host4. Time: 17ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:34.920 Info Server: http/1.1 POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Command?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:35.009 Info Server: http/1.1 Response 204 to host2. Time: 90ms. POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Command?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-03-20 15:39:36.962 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:36.966 Info Server: http/1.1 POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=300929&PlayCommand=PlayShuffle&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:37.015 Info Server: http/1.1 Response 200 to host4. Time: 53ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:37.065 Info Server: http/1.1 Response 204 to host2. Time: 99ms. POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=300929&PlayCommand=PlayShuffle&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-03-20 15:39:38.321 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:38.361 Info Server: http/1.1 Response 200 to host4. Time: 40ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:40.435 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:40.451 Info Server: http/1.1 Response 200 to host4. Time: 16ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:44.369 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:44.403 Info Server: http/1.1 Response 200 to host4. Time: 34ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:47.225 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:47.266 Info Server: http/1.1 Response 200 to host4. Time: 41ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:48.680 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:48.720 Info Server: http/1.1 Response 200 to host4. Time: 40ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:49.253 Info Server: http/1.1 HEAD http://host1/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus,mp3|mp3,mp2,mp3|mp2,m4a|aac,mp4|aac,flac,webma,webm,wav|PCM_S16LE,wav|PCM_S24LE,ogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=x_secret1_x&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false. Accept=*/*, Connection=close, Host=host1, User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0, Accept-Encoding=gzip, deflate, br, Accept-Language=fr-FR,en-US;q=0.7,en;q=0.3, Referer=https://zik.badfile.net/web/index.html, X-Real-IP=host3, X-Forwarded-For=host3, X-Forwarded-Host=host1, X-Forwarded-Proto=https, X-Forwarded-Ssl=on, X-Forwarded-Port=443, X-Original-URI=/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus%2Cmp3%7Cmp3%2Cmp2%2Cmp3%7Cmp2%2Cm4a%7Caac%2Cmp4%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav%7CPCM_S16LE%2Cwav%7CPCM_S24LE%2Cogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=a8a98d6467514b8e840e960ac336749f&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false, DNT=1, sec-fetch-dest=empty, sec-fetch-mode=cors, sec-fetch-site=same-origin
2024-03-20 15:39:49.257 Info App: User policy for Raphaël. EnableAudioPlaybackTranscoding: True
2024-03-20 15:39:49.275 Info Server: http/1.1 Response 200 to host2. Time: 23ms. HEAD http://host1/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus,mp3|mp3,mp2,mp3|mp2,m4a|aac,mp4|aac,flac,webma,webm,wav|PCM_S16LE,wav|PCM_S24LE,ogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=x_secret1_x&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false
2024-03-20 15:39:49.293 Info Server: http/1.1 GET http://host1/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus,mp3|mp3,mp2,mp3|mp2,m4a|aac,mp4|aac,flac,webma,webm,wav|PCM_S16LE,wav|PCM_S24LE,ogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=x_secret1_x&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false. Accept=audio/webm,audio/ogg,audio/wav,audio/*;q=0.9,application/ogg;q=0.7,video/*;q=0.6,*/*;q=0.5, Connection=close, Host=host1, User-Agent=Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0, Accept-Encoding=identity, Accept-Language=fr-FR,en-US;q=0.7,en;q=0.3, Range=bytes=0-, Referer=https://zik.badfile.net/web/index.html, X-Real-IP=host3, X-Forwarded-For=host3, X-Forwarded-Host=host1, X-Forwarded-Proto=https, X-Forwarded-Ssl=on, X-Forwarded-Port=443, X-Original-URI=/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus%2Cmp3%7Cmp3%2Cmp2%2Cmp3%7Cmp2%2Cm4a%7Caac%2Cmp4%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav%7CPCM_S16LE%2Cwav%7CPCM_S24LE%2Cogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=a8a98d6467514b8e840e960ac336749f&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false, DNT=1, sec-fetch-dest=audio, sec-fetch-mode=cors, sec-fetch-site=same-origin
2024-03-20 15:39:49.298 Info App: User policy for Raphaël. EnableAudioPlaybackTranscoding: True
2024-03-20 15:39:49.298 Info SessionManager: Adding playSession 1710923117434 to session 817919cc5a3b8e0d922e42c2b6bb8e88
2024-03-20 15:39:49.405 Info Server: http/1.1 POST http://host1/emby/Sessions/Playing?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:49.406 Info Server: http/1.1 POST http://host1/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:49.470 Info SessionManager: Playback start reported by app Emby Web 4.8.0.80 playing Phat 107 BPM. Started at 0 ms
2024-03-20 15:39:49.492 Info Server: http/1.1 Response 204 to host2. Time: 88ms. POST http://host1/emby/Sessions/Playing?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-03-20 15:39:49.493 Info Server: http/1.1 Response 204 to host2. Time: 87ms. POST http://host1/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-03-20 15:39:50.513 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:50.551 Info Server: http/1.1 Response 200 to host4. Time: 38ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:50.996 Info Server: http/1.1 Response 206 to host2. Time: 1704ms. GET http://host1/emby/Audio/300904/universal?UserId=86d349f91e6f4802ac355cce7c7ff3c5&DeviceId=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&MaxStreamingBitrate=4000000&Container=opus,mp3|mp3,mp2,mp3|mp2,m4a|aac,mp4|aac,flac,webma,webm,wav|PCM_S16LE,wav|PCM_S24LE,ogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=x_secret1_x&PlaySessionId=1710923117434&StartTimeTicks=0&EnableRedirection=true&EnableRemoteMedia=false
2024-03-20 15:39:51.010 Info Server: http/1.1 POST http://host1/emby/Sessions/Playing/Stopped?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:51.012 Info SessionManager: Playback stopped reported by app Emby Web 4.8.0.80 on Firefox playing Phat 107 BPM. Stopped at 840 ms
2024-03-20 15:39:51.013 Info SessionManager: Removing playSession 1710923117434 from session 817919cc5a3b8e0d922e42c2b6bb8e88
2024-03-20 15:39:51.013 Info Server: http/1.1 Response 204 to host2. Time: 3ms. POST http://host1/emby/Sessions/Playing/Stopped?X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us&reqformat=json
2024-03-20 15:39:51.775 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:51.819 Info Server: http/1.1 Response 200 to host4. Time: 44ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:52.967 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:53.006 Info Server: http/1.1 Response 200 to host4. Time: 40ms. POST http://host1/emby/Sync/data
2024-03-20 15:39:54.765 Info Server: http/1.1 POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=300929&PlayCommand=PlayShuffle&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us. UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0
2024-03-20 15:39:54.861 Info Server: http/1.1 Response 204 to host2. Time: 96ms. POST http://host1/emby/Sessions/a81bf98bfdfce9ed11f5cb28c4f1c66c/Playing?ItemIds=300929&PlayCommand=PlayShuffle&X-Emby-Client=Emby Web&X-Emby-Device-Name=Firefox&X-Emby-Device-Id=7d81ee4a-0623-40c7-96c3-b79a526fe5b0&X-Emby-Client-Version=4.8.0.80&X-Emby-Token=x_secret1_x&X-Emby-Language=en-us
2024-03-20 15:39:55.593 Info Server: http/1.1 POST http://host1/emby/Sync/data. UserAgent: okhttp/4.11.0
2024-03-20 15:39:55.614 Info Server: http/1.1 Response 200 to host4. Time: 21ms. POST http://host1/emby/Sync/data

How to further debug this issue? The request doesn't seem abnormally long, so what is the TV app trying to fetch that take so long?

Edited by ryancey
Link to comment
Share on other sites

Hi there, please attach the complete emby server log. thanks,.

Link to comment
Share on other sites

Hi, so which client hangs, the one controlling, or the one playing?

Link to comment
Share on other sites

OK we'll take a look at it. Thanks.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...