Exoplayer about 10 or 15 minutes the application closes when the screen turns off

No.
This have nothing to do with this.
Iam talking about “Android X” as library system.

We still use android support libs.