Reputation: 1204
I want know what youtube is playing through my application.What should I do?? My app will be just like popup dialog app (floating application) and when I am playing any youtube videos,I want to know its youtube video url.
Upvotes: 0
Views: 39
Reputation: 201
I am not understanding how you are playing YouTube videos in your app. I am assuming you are using a WebView? If so, I recommend using the following code in your app to get the url.
String getUrl = webView.getUrl();
myTextView.setText(getUrl);
or
myTextView.setText(webview.getUrl());
Upvotes: 1