Playing video using YouTube API - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- Android app using Kotlin Tutorials - English
-
You Tube Video API is deprecated then what should be used instead?
Kindly inform the correct updated API to use intead the one mentioned in the tutorial as it has now become deprecated.
01-02M 0-10S WNeha
Answer last updated on: Sept. 3, 2023, 9:50 a.m.
-
Please Help
How to Solve Intel HAXM Error in Android Studio
09-10M 20-30S Deepak94
Answer last updated on: June 17, 2021, 2:24 p.m.
-
An error occured while initializing youtube player
Iam getting an error instead of the selected video and iam also getting a toast message soment went wrong that is written inside "OnInitializationfailure" method.How can I solve this and get the video playing on the screen.Thankyou.
09-10M 50-60S vijaydonkena@gmail.com
Answer last updated on: June 2, 2021, 1:32 p.m.
Questions posted on ST Forums:
6518 visits
Outline:
Create a new project in Google cloud Generate the API key and save it Enable the YouTube API How to use YouTubePlayerView provided by YouTube Initialize the view to play a video from YouTube, by giving the video ID Download the YouTubeAndroidPlayerApi.jar file from the developers website Copy the above file in the Android Studio project Source code for YouTube player cueVideo method Run the Kotlin App and play the video
Width: | 1168 | Height: | 640 |
---|---|---|---|
Duration: | 00:11:37 | Size: | 6.1 MB |
Show video info