HaarigerHarald / android-youtubeExtractor

Deprecated: Android based YouTube URL extractor and downloader
Other
877 stars 304 forks source link

In my android app I was using 'com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT' to get the youtube URL to play the video in exoplayer. But for 2 or 3 days it is unable to give the URL. Code below- @SuppressLint("StaticFieldLeak") YouTubeExtractor mExtractor = new YouTubeExtractor(this) { @Override protected void onExtractionComplete(SparseArray<YtFile> sparseArray, VideoMeta videoMeta) { if (sparseArray != null) { url = sparseArray.get(18).getUrl(); Log.i("VIDEO_URL", url); initializePlayer(); } } }; mExtractor.extract(mYoutubeLink, false, true); #175

Closed rajnesh-culturealley closed 3 years ago

Akarsh07 commented 3 years ago

The same happens to me.

shailendra-rajpoot commented 3 years ago

i am getting same issue

gajananinfotech20 commented 3 years ago

BasicNetwork.performRequest: Unexpected response code 403 for http://www.youtube.com/oembed?url=https://www.youtube.com/watch?v=30Y6QnAumWw E/erorr::: com.android.volley.AuthFailureError

ajstar12 commented 3 years ago

My All Live Project Getting Same Error.

DotProduct commented 3 years ago

Apply the fix listed here : https://github.com/HaarigerHarald/android-youtubeExtractor/issues/176#issuecomment-845022827

Youtube added a parameter to their link

shailendra-rajpoot commented 3 years ago

how to pass this parameter html5=1 in my method extractYoutubeUrl()

extractYoutubeUrl("https://www.youtube.com/watch?v=$id",iTag.toInt(),::getDecodedUrl)

shailendra-rajpoot commented 3 years ago

how to pass this parameter html5=1 in my method extractYoutubeUrl()

extractYoutubeUrl("https://www.youtube.com/watch?v=$id",iTag.toInt(),::getDecodedUrl)

shailendra-rajpoot commented 3 years ago

please bro tell me how can fix the issue how can i pass this parameter html5=1 in my method extractYoutubeUrl()

extractYoutubeUrl("https://www.youtube.com/watch?v=$id",iTag.toInt(),::getDecodedUrl)