App uploading error and google play said!

One example to illustrate background play is when the audio of a YouTube video continues to play even after the user has navigated away from the page containing that video. ( ex: your app continues to play videos when the device is in lock screen mode. )

Any idea, how to solve?

switch or close screen in right way, try this method,