{"id":14979661,"url":"https://github.com/mitushaa/youtube-player-api","last_synced_at":"2025-10-28T19:31:49.228Z","repository":{"id":44690064,"uuid":"253400099","full_name":"mitushaa/YouTube-Player-API","owner":"mitushaa","description":"Learn how to integrate and play a video using YouTube API in Android with Kotlin","archived":false,"fork":false,"pushed_at":"2022-01-31T05:22:27.000Z","size":236,"stargazers_count":25,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-28T03:21:17.661Z","etag":null,"topics":["android-application","kotlin","kotlin-android","youtube","youtube-api","youtube-video"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mitushaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-06T05:06:27.000Z","updated_at":"2024-09-24T07:23:56.000Z","dependencies_parsed_at":"2022-09-15T17:13:55.070Z","dependency_job_id":null,"html_url":"https://github.com/mitushaa/YouTube-Player-API","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitushaa%2FYouTube-Player-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitushaa%2FYouTube-Player-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitushaa%2FYouTube-Player-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mitushaa%2FYouTube-Player-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mitushaa","download_url":"https://codeload.github.com/mitushaa/YouTube-Player-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219875834,"owners_count":16554708,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android-application","kotlin","kotlin-android","youtube","youtube-api","youtube-video"],"created_at":"2024-09-24T14:00:27.649Z","updated_at":"2025-10-28T19:31:48.868Z","avatar_url":"https://github.com/mitushaa.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# YouTube Player Application using Kotlin\n\n ![](https://miro.medium.com/max/840/1*oyjW0tejW_oiznAo4hNThA.png)\u003cbr\u003e\u003cbr\u003e\n\n\n* In this project we will learn how to integrate and play a video using YouTube API in Android with Kotlin.\u003cbr\u003e\n\n* The YouTube Android Player API enables you to incorporate video playback functionality into your Android applications. \u003cbr\u003e\n* The API defines methods for loading and playing YouTube videos (and playlists) and for customizing and controlling the video playback experience.\u003cbr\u003e\n* Using the API, you can load or cue videos into a player view embedded in your application’s UI. You can then control playback programmatically. For example, you can play, pause, or seek to a specific point in the currently loaded video.\u003cbr\u003e\n* You can also register event listeners to get callbacks for certain events, such as the player loading a video or the player state changing. Finally, the API has helper functionality to support orientation changes as well as transitions to fullscreen playback.\u003cbr\u003e\n\n### Creating an Android Project:\n### Step 1- Creating a new file project with an empty activity\n ![](https://miro.medium.com/max/840/1*sg9_J-JTg21TkDcjJTlZ6Q.png)\u003cbr\u003e\u003cbr\u003e\n\n\nGo to Files\nCreate a New Project\nSelect a Project Template- Basic Activity\n\n\n### Step 2- Setting up YouTube Library and Manifest\nIn this part, we will see how to set up the YouTube API Client library for the project.\n ![](https://miro.medium.com/max/840/1*sK9qj_y_DODlANi-qtXwdg.png)\u003cbr\u003e\u003cbr\u003e\n  ![](https://miro.medium.com/max/840/1*KImSydyBDDwZaadYrQdjWA.png)\u003cbr\u003e\u003cbr\u003e\n\n\n\nGo to YouTube Android Player API and download YouTube Android Player API jar file\u003cbr\u003e\nExtract the jar files and add them to the “libs” folder.\nIntegration of YouTube Android Player in Screen using Kotlin\n### Step 1: Go to Google Developer Console — https://console.developers.google.com/apis/library/\n### Step 2: Enable YouTube Data API\n  ![](https://miro.medium.com/max/840/1*f_tkRe2zgww2aURcXXvUdA.png)\u003cbr\u003e\u003cbr\u003e\n\n\n### Step 3: Go to “Help me choose” option\n  ![](https://miro.medium.com/max/1400/1*ApItZsDNpE26ALZkc5jPZA.png)\u003cbr\u003e\u003cbr\u003e\n\n\n### Step 4: Select the credentials as shown below\n  ![](https://miro.medium.com/max/1400/1*2BNW-yjgsnzQ1I2YnLaziQ.png)\u003cbr\u003e\u003cbr\u003e\n\n### Step 5: Go to Credentials\n\n  ![](https://miro.medium.com/max/1400/1*2MxMU0xeGnlO2ePLunUqFQ.png)\u003cbr\u003e\u003cbr\u003e\n    ![](https://miro.medium.com/max/1400/1*hfGDexmoj5DCeGsNKFAwFw.png)\u003cbr\u003e\u003cbr\u003e\n      ![](https://miro.medium.com/max/1400/1*jdMz2WaJxYSE-bQ2hnRj3g.png)\u003cbr\u003e\u003cbr\u003e\n\n  ![](https://miro.medium.com/max/1400/1*pNbgmcjX0UGThhRI5Rpk0Q.png)\u003cbr\u003e\u003cbr\u003e\n    ![](https://miro.medium.com/max/1400/1*H9-xbaUumv2O9AvF84F7oQ.png)\u003cbr\u003e\u003cbr\u003e\n\n\n\n\n1. In the place of “Name” enter your package name\n2. Generate the SHA-1 certificate fingerprint by running “signingReport”\n3. Copy the generated SHA-1 certificate fingerprint and place it as shown above\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitushaa%2Fyoutube-player-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmitushaa%2Fyoutube-player-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmitushaa%2Fyoutube-player-api/lists"}