{"id":13786870,"url":"https://github.com/akoscz/YouTubePlaylist","last_synced_at":"2025-05-12T00:30:32.588Z","repository":{"id":12605357,"uuid":"15276358","full_name":"akoscz/YouTubePlaylist","owner":"akoscz","description":"A sample Android application which demonstrates the use of the YouTube Data  v3 API.","archived":false,"fork":false,"pushed_at":"2023-11-26T23:48:35.000Z","size":10211,"stargazers_count":153,"open_issues_count":6,"forks_count":85,"subscribers_count":19,"default_branch":"main","last_synced_at":"2024-11-18T00:37:15.288Z","etag":null,"topics":["java","picasso","youtube-data"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/akoscz.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,"governance":null}},"created_at":"2013-12-18T07:12:48.000Z","updated_at":"2024-08-29T15:46:29.000Z","dependencies_parsed_at":"2023-11-27T00:21:44.871Z","dependency_job_id":"f05c9878-3292-42f4-aa14-d0da6b4a346c","html_url":"https://github.com/akoscz/YouTubePlaylist","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/akoscz%2FYouTubePlaylist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akoscz%2FYouTubePlaylist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akoscz%2FYouTubePlaylist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akoscz%2FYouTubePlaylist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akoscz","download_url":"https://codeload.github.com/akoscz/YouTubePlaylist/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253655746,"owners_count":21943067,"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":["java","picasso","youtube-data"],"created_at":"2024-08-03T20:00:20.196Z","updated_at":"2025-05-12T00:30:31.876Z","avatar_url":"https://github.com/akoscz.png","language":"Java","funding_links":[],"categories":["Library"],"sub_categories":[],"readme":"YouTubePlaylist\n===============\n\nA sample Android application which demonstrates the use of the [YouTube Data API v3](https://developers.google.com/youtube/v3/).\n\nThis sample app makes use of the [YouTube Data API v3 classes](https://developers.google.com/resources/api-libraries/documentation/youtube/v3/java/latest/) to fetch a YouTube [Playlist](https://developers.google.com/resources/api-libraries/documentation/youtube/v3/java/latest/com/google/api/services/youtube/model/Playlist.html) using the [GetPlaylistAsyncTask](app/src/main/java/com/akoscz/youtube/GetPlaylistAsyncTask.java) which then extracts the list of [Video](https://developers.google.com/resources/api-libraries/documentation/youtube/v3/java/latest/com/google/api/services/youtube/model/Video.html)'s the playlist contains.  The list of video's are then presented using a [RecyclerView](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.html) of [CardView](https://developer.android.com/reference/android/support/v7/widget/CardView.html)'s in the [YouTubeRecyclerViewFragment](app/src/main/java/com/akoscz/youtube/YouTubeRecyclerViewFragment.java).  The data binding of video details to CardView is handled by the [PlaylistCardAdapter](app/src/main/java/com/akoscz/youtube/PlaylistCardAdapter.java).\n\n[Picasso](https://github.com/square/picasso) is used for downloading and caching the video thumbnail images.\nAnd lastly a [retained fragment](http://developer.android.com/guide/topics/resources/runtime-changes.html#RetainingAnObject) is used to persist the [PlaylistVideos](app/src/main/java/com/akoscz/youtube/model/PlaylistVideos.java) datamodel across orientation changes.\n\n## Setup\n  \n  * Register your application with the [Google Developer Console](https://developers.google.com/youtube/registering_an_application).\n  * Create an [\"Api Key\"](https://developers.google.com/youtube/registering_an_application#Create_API_Keys)\n  * Edit [ApiKey.java](app/src/main/java/com/akoscz/youtube/ApiKey.java) and update `YOUTUBE_API_KEY` with your applications \"Api Key\"\n  * Edit [YouTubeActivity.java](app/src/main/java/com/akoscz/youtube/YouTubeActivity.java) and update `YOUTUBE_PLAYLISTS` with a list of your YouTube [playlists](https://www.youtube.com/playlistVideos?list=PLWz5rJ2EKKc_XOgcRukSoKKjewFJZrKV0).\n\n*NOTE:* You MUST have a valid API key for this sample application to work. Remember, when you register your application with the Google Developer Console you need to enable the YouTube Data API.\n  \n## Dependencies\n\n  * [androidx.cardview:cardview:1.0.0](https://developer.android.com/jetpack/androidx/releases/cardview)\n  * [androidx.recyclerview:recyclerview:1.3.2](https://developer.android.com/jetpack/androidx/releases/recyclerview)\n  * [androidx.appcompat:appcompat:1.6.1](https://developer.android.com/jetpack/androidx/releases/appcompat)\n  * [com.squareup.picasso:picasso:2.71828](https://github.com/square/picasso)\n  * [com.google.apis:google-api-services-youtube:v3-rev20231011-2.0.0](https://developers.google.com/api-client-library/java/apis/youtube/v3)\n  * [com.google.http-client:google-http-client-android:1.43.3](https://github.com/google/google-http-java-client)\n  * [com.google.api-client:google-api-client-android:2.2.0](https://github.com/google/google-api-java-client)\n  * [com.google.api-client:google-api-client-gson:2.2.0](https://github.com/google/google-api-java-client)\n\n## Screenshots\n__Phone__: Single Column Portrait and Landscape\n\n![](screenshots/phone-port.png)\n\n__Tablet__: 7\" and 9\" (sw600) 2 Columns Portrait, 3 Columns Landscape\n\n![](screenshots/tablet_7_9-port.png)\n![](screenshots/tablet_7_9-land.png)\n\n__Tablet__: 10\" (sw800) 3 Columns Portrait and Landscape\n\n![](screenshots/tablet_10-port.png)\n![](screenshots/tablet_10-land.png)\n\n## License\n\n  * [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakoscz%2FYouTubePlaylist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakoscz%2FYouTubePlaylist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakoscz%2FYouTubePlaylist/lists"}