How to play a Youtube video inside a native app?

I'm building a native app and I need to play a Youtube video. I was wondering if you can provide me with some a sample or some documentation to acomplish this task.

I'm trying to embed this piece of code inside the application or something similar to play videos:

<iframe width="949" height="534" src="" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

Thank you for your help.  I look forward to hearing from you at your earliest convenience.