I wrote an app with webview which displays m.youtube.com. It works in other android versions. However, in Android 2.2, shouldOverrideUrlLoading is not even called when a link like “rtsp://vx.cache.youtube.com/…” is clicked. Does anyone have the same problem?
I wrote an app with webview which displays m.youtube.com. It works in other android
Share
I’ve found a workaround for this problem.
If you’ll change the User-Agent of WebView while requesting YouTube page (http://m.youtube.com/) you’ll get correct links to the videos. And all videos will be opened by YouTube internal application.
Here is little code snippet:
It is a little tricky but it works. Looking forward to find a fix but not a workaround.