Jump to content

Music playback issues


flowlee

Recommended Posts

Hi everyone!

 

I'm running the latest versions of both the Emby server and the Android app on my Phone (Android 6.0).

 

Whenever I play music it starts to play as it should but after about 30 seconds pauses for a few seconds. This happens repeatedly all throughout different songs. It also doesn't matter if the music is steamed or played from a downloaded file. To me it doesn't sound like a buffer problem but more like the app is loosing focus and then gaining it again.

 

I could reproduce this problem and got the following log output:

Fri Sep 15 20:45:50 GMT+02:00 2017 Checking network connection
Fri Sep 15 20:45:50 GMT+02:00 2017 MediaSyncAdapter starting
Fri Sep 15 20:45:50 GMT+02:00 2017 capabilitiesJson not set yet. Skipping sync.
Fri Sep 15 20:45:52 GMT+02:00 2017 Executing chromecast action emitAllRoutes request id: 5
Fri Sep 15 20:45:57 GMT+02:00 2017 Executing chromecast action emitAllRoutes request id: 6
Fri Sep 15 20:46:06 GMT+02:00 2017 Executing chromecast action emitAllRoutes request id: 7
Fri Sep 15 20:46:30 GMT+02:00 2017 libVlc version 3.0.0-git Vetinari
Fri Sep 15 20:46:30 GMT+02:00 2017 getAout result: opensles_android
Fri Sep 15 20:46:30 GMT+02:00 2017 Starting service
Fri Sep 15 20:46:30 GMT+02:00 2017 Acquiring network lock
Fri Sep 15 20:46:30 GMT+02:00 2017 Acquiring wake lock
Fri Sep 15 20:46:34 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:46:34 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:46:34 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:46:34 GMT+02:00 2017 MediaPlayerESAdded
Fri Sep 15 20:46:34 GMT+02:00 2017 MediaPlayerPlaying
Fri Sep 15 20:47:21 GMT+02:00 2017 MainActivity.onPause
Fri Sep 15 20:53:03 GMT+02:00 2017 MediaPlayerEndReached
Fri Sep 15 20:53:04 GMT+02:00 2017 Media command: stop
Fri Sep 15 20:53:04 GMT+02:00 2017 getAout result: opensles_android
Fri Sep 15 20:53:04 GMT+02:00 2017 getAout result: opensles_android
Fri Sep 15 20:53:04 GMT+02:00 2017 Starting service
Fri Sep 15 20:53:04 GMT+02:00 2017 Acquiring network lock
Fri Sep 15 20:53:04 GMT+02:00 2017 Acquiring wake lock
Fri Sep 15 20:53:09 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:53:09 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:53:09 GMT+02:00 2017 MediaPlayerESDeleted
Fri Sep 15 20:53:09 GMT+02:00 2017 MediaPlayerESAdded
Fri Sep 15 20:53:09 GMT+02:00 2017 MediaPlayerPlaying
Fri Sep 15 20:54:03 GMT+02:00 2017 Executing chromecast action emitAllRoutes request id: 8
Fri Sep 15 20:54:04 GMT+02:00 2017 Media command: playpause
Fri Sep 15 20:54:04 GMT+02:00 2017 MediaPlayerPaused
Fri Sep 15 20:54:06 GMT+02:00 2017 MainActivity.onPause
Fri Sep 15 20:54:07 GMT+02:00 2017 Executing chromecast action emitAllRoutes request id: 9

One other problem I encountered is that when I skip more than one song quickly the player just stops at the beginning of the current song. When I skip to the next song, wait a little and then skip back everything starts to play normally except for the problem described above.

 

Both problems I described happen only with the Android app and with 4G or Wifi, and with or without headphones.

 

Do you have any idea what could cause these issues?

 

Thank you!

Link to comment
Share on other sites

I tried the new release and the issues are still present.

 

I think the first problem I described is due to CPU scaling because it can be reproduced on my phone by turning the screen off manually and doesn't happen at all when the screen is on. I can't tell for sure yet but it looks like I can get rid of the skipping by turning battery optimization off specifically for the Emby app.

 

For the second problem I still have no idea what may be causing it.

 

Thank you for looking into this!

Link to comment
Share on other sites

  • 4 months later...

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...