This feature may have compatibility problems with some applications and may not be effective for all applications. We recommend you use the Music Control on the pre-installed music app.
Related articles:
How to control music playback with screen-off gestures