Background videos function in android studio

Hello, I was trying brave, I love its function of playing videos in the background.

For them I am developing an app in Android studio and I would like to know more about how this function is implemented and how to implement it in my application using a webview or whatever has to be used.

I understand that brave is an open source project, and I thought the community could help me with this.
I hope it is the right place to ask about this, if not, you can guide me. Where can I get the help I need.
And so I can share my code and more information to receive help.

Can I write my kotlin code here?