Closed waqarr closed 4 years ago
how can i extract m4a audio link ?
@waqarr
Use this code under onExtractionDone
.
for(YoutubeMedia media:adativeStream){
if(media.isAudioOnly()){
....
}
}
Sent from my HOT 4 PRO using FastHub
if i want show all Resolution how can i do that?
like this
for(YoutubeMedia media:muxedStream){
if(!media.isAudioOnly() && !media.isVideoOnly()) {
addButtonToMainLayout(media.getResolution(), media.getUrl(), meta.getTitle());
}
}
this return null media.getResolution()
@bunaif As far as media.getResolution()
it works only with videos.. It will return null for audios
Sent from my HOT 4 PRO using FastHub
@naveedhassan913 I know, but still give me a null.
Can you check them?
Actually I'm too busy these days, So there is less possibilities that i update the lib.Why don't unit fork lib and fix these issues yourself.
okay, I will try. Thank you
@naveedhassan913 fixed, now return hd720 or medium https://github.com/bunaif/YouTubeExtractor/commit/e66d48241ac944c6657b55d9f186c10a5a9080f5
check it.
Lib updated... Use getMimeType() to differ audio /video
i like this repo but i need to extract audio link from youtube