You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are the literal uris to the Youtube video or audio files, so you can stream or download them.
4
+
These are the literal uris to the YouTube video or audio files, so you can stream or download them.
5
5
It features an age verification circumvention and a signature deciphering method (mainly for vevo videos).
6
6
7
7
I've made a little jar lib which should make integration super easy: [youtubeExtractor.jar](https://github.com/HaarigerHarald/android-youtubeExtractor/raw/master/bin/youtubeExtractor.jar)
@@ -17,18 +17,18 @@ It's basically build around an AsyncTask. Called from an Activity you can write
17
17
public void onUrisAvailable(String videoId, String videoTitle, SparseArray<YtFile> ytFiles) {
18
18
if(ytFiles!=null){
19
19
int itag = 22;
20
-
// itag is a Youtube format identifier, 22 for example is mp4 h264 1280x720
20
+
// itag is a YouTube format identifier, 22 for example is "mp4 h264 1280x720"
21
21
22
-
String downloadUrl = ytFiles.get(itag).url;
22
+
String downloadUrl = ytFiles.get(itag).getUrl();
23
23
// TODO: Do something cool with the "downloadUrl"...
24
24
}
25
25
}
26
26
};
27
27
28
28
ytEx.execute(youtubeLink);
29
29
30
-
The important thing is the ytFiles SparseArray. Because Youtube videos are available in multiple formats we can choose one by
31
-
calling ytFiles.get(itag). One ytFile contains the uri and its appropriate meta data like: mp4 1280x720 or m4a dash aac
30
+
The important thing is the ytFiles SparseArray. Because YouTube videos are available in multiple formats we can choose one by
31
+
calling ytFiles.get(itag). One ytFile contains the uri and its appropriate meta data like: "mp4 1280x720" or "m4a dash aac"
32
32
33
33
For further infos have a look at the supplied sample YoutubeDownloader app. It uses the "Share" function in the official Youtube
34
34
app to download Youtube videos. It doesn't have a launcher entry though so don't be irritated.
@@ -42,7 +42,7 @@ To try the app have a look at: [youtubeDownloader.apk](https://github.com/Haarig
42
42
I'm using a useful lib for JavaScript execution, if you want to build your own lib from the sources head
43
43
over to: https://github.com/evgenyneu/js-evaluator-for-android
44
44
45
-
Just to make it clear I'm not in any way related to Youtube!
45
+
Just to make it clear I'm not in any way related to YouTube!
0 commit comments