Android How To Get Playing Video Url From WebView

Alexander

I have a webview. I want to get video url when user start play video that on webview content.

Example Url : https://www.izlesene.com/video/htc-desire-eye-ilk-bakis/7822052#_

Is that possible getting video url(file url which ends with .mp4 ) when video start to play? Or Should I parse html of webview with jsoup and find video url from html?

Mick

You can ask the web view to inform the app it is hosted in of any URL resource it is loading by using the onLoadResource callback of the WebViewClient:

onLoadResource

added in API level 1

  void onLoadResource (WebView view, 
            String url)

Notify the host application that the WebView will load the resource specified by the given url.

More info here: https://developer.android.com/reference/android/webkit/WebViewClient.html#onLoadResource%28android.webkit.WebView,%20java.lang.String%29

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Android not playing the video file from a given url

How is video playing on Chrome different from the Android WebView on Android 7+?

WebView video not playing in Android 2.3

Android: playing youtube video on Webview

How to stop video playing in WebView

HTML5 video not playing in android webview

Playing Video from RAM in Android

How to get the current minute for playing YouTube video in Android

How to get video from web socket url in android?

Check if a WebView is playing a video

android mediaplayer get playing url

get video duration from URL in android app

Playing HTML5 video on fullscreen in android webview

How to get JSON from webview with dynamic URL?

Playing a video from res/raw on Android Wear

How can I make WebView keep a video or audio playing in the background?

ExoPlayer, MediaSource created Video Player not Playing the video extracted from a URL

Youtube video not playing in qt webview

How to get direct link of remote video from embedded url within a url in Android using JSoup?

How to show video in webView on Android

How to stop a youtube video from playing

How to stop a flex video from playing on load

How to get video URL to download video from RTMP stream

How to play a video from video url when onclick imagebutton in android?

How to get the value from the URL GET parameters in react native webview?

How to get duration of Youtube video without playing the video in Reactjs

Android Appcelerator Get URL from remote URL in webview and open it in devices default browser or a new webview

Showing html5 Video on Android Webview. Video getting black while playing

Playing video in videoview android