we need Kotlin Java android studio code for youtube player - it must not redirect to youtube and quality control option

Job ID: 40195049

Budget: $30 – $250 USD

I’m integrating YouTube playback inside an existing Android app and need a small, self-contained Android Studio module written in Kotlin (Java-callable) that keeps the viewer inside the app at all times—no jumps to the YouTube app or browser.

Core behaviour
• Load and play any public YouTube video from its ID.
• Standard playback controls must live in my layout: play / pause, seek bar, full-screen toggle.
• Give the user a simple quality picker (144p → 1080p) and fall back to an automatic setting if nothing is chosen.

Development notes
– Target: current stable Android Studio + minimum SDK 23.
– Prefer the official YouTube Player Library; if you’d rather wrap IFramePlayer or ExoPlayer with DASH/HLS streams, that’s fine as long as you respect YouTube ToS and keep everything in-app.
– The module has to be cleanly packaged so I can import it into another project without refactoring.

Deliverables
1. Complete Android Studio project (source + Gradle) with a demo Activity showing the player in action.
2. README explaining integration steps, required API keys and how to enable/disable quality selection.
3. Brief notes on any libraries used and their licences.

Acceptance
I’ll run the demo on a device and confirm that a chosen video plays, quality can be switched in-line, and pressing back or switching activities never opens external YouTube.