Android Question Exoplayer Youtube Dash

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

analizer3816

Member
Licensed User
Longtime User
I tried this with the B4A Youtube video: ....//www.youtube.com/watch?v=cgxWP4Wu77s
but no usable streams. I can download the MP4 with one of the found links: https://www.saveitoffline.com/get/?...aHnAGjY0ns&u=d5eaRrcHKaVgmRfXXp9Z1FSp73GgtX8T but cannot use it to instantly stream the video. How to find the ...mp4 URL?

Kindly show us how to do this with saveitoffline. Thank you!

you must add json , text or xml
example:
B4X:
https://www.saveitoffline.com/process/?url=www.youtube.com/watch?v=cgxWP4Wu77s&type=json
 
Upvote 0

johnmie

Active Member
Licensed User
Longtime User
Looking at all the replies I think there must be somewhere a simple and reliable solution. So I concocted the following which failed miserably and I wonder why:

Dim videoID As String = "FaFftJh7nKc"
Dim su As StringUtils
Dim A, encoded As String
dim j, k as inte

Dim job As HttpJob
job.Initialize("YouTube",Me)
job.Download("http://www.youtube.com/get_video_info?video_id="&videoID)
wait for (job) JobDone(job As HttpJob)
If job.Success Then
A=job.GetString
encoded=su.DecodeUrl(A,"UTF-8")
j=A.IndexOf("dashmpd")
k=encoded.IndexOf("dashmpd")

no dashmpd in sight and when I do it ten times in a row I get ten different strings returned.

Can anyone enlighten me, please. Thanks in advance

john m.
 
Upvote 0
Top