0

I am injecting javascript in android webview to get the videos url when i open youtube.com then youtube return me two urls one is video url which is opened in browser and second is blob url like :

blob:https://m.youtube.com/22feb068-4df1-4689-898e-a4e9215fe7a6

i want to get the redirected url from the youtube which is playable on chromecast. i used same javascript in iOS its working fine and webview return playable url but in android its return Blob url. is there any way to convert blob url to redirected url.

Muhammad Tufail
  • 326
  • 5
  • 14
  • did you see this (https://stackoverflow.com/questions/30864573/what-is-a-blob-url-and-why-it-is-used) – Robert Oct 23 '20 at 08:56
  • is not better to use official youtube api to get needed data ? or one of many libs ? – Robert Oct 23 '20 at 09:02
  • i don't was to use official youtube api because i am getting url using javascript injection..yes i read about blob url and i use the method it return me undefined.i use same javascript in iOS it return me playable url but in android it return blob url which is not playing in webview. – Muhammad Tufail Oct 23 '20 at 09:22

0 Answers0