webview1.Initialize("webview1")
Activity.AddView (webview1,0,0,100%x,100%y)
URL="http://admin:@192......1/video2.mjpg" ' OK (va bene in locale, con wifi
webview1.LoadUrl(URL)
<!DOCTYPE html>
<html>
<head><meta http-equiv="Pragma" content="no-cache" /><meta http-equiv="Chache-Control" content="no-cache" /></head>
<body>
TEST 1<BR>
<iframe src="http://admin:@192.1.......1/video1.mjpg?autoplay=1&rel=1" width="800" height="640"></iframe>
</body>
</html>
webview1.Initialize("webview1")
Activity.AddView (webview1,0,0,100%x,100%y)
URL="http://*******/test.html"
webview1.LoadUrl(URL)
Dim wv as WebView
Dim wve as WebViewExtras
wve.addWebChromeClient(wv, "WVE")
Dim URL As String
Dim webview1 As WebView
Dim WebViewExtras1 As WebViewExtras
webview1.Initialize("webview1")
Activity.AddView (webview1,0,0,100%x,100%y)
URL="http://p***********i/c****.html"
WebViewExtras1.addWebChromeClient(webview1, "WebViewExtras1")
webview1.LoadUrl(URL)
Dim URL As String
webview1.Initialize("")
WebViewExtras1.Initialize(webview1)
webview1.JavaScriptEnabled=True
WebViewExtras1.JavaScriptEnabled=True
Dim WebChromeClient1 As DefaultWebChromeClient
WebChromeClient1.Initialize("WebChromeClient1")
WebViewExtras1.SetWebChromeClient(WebChromeClient1)
Dim WebViewClient1 As DefaultWebViewClient
WebViewClient1.Initialize("WebViewClient1")
WebViewExtras1.SetWebViewClient(WebViewClient1)
Activity.AddView (webview1,0,0,100%x,100%y)
URL="http://########/#######e.html"
WebViewExtras1.LoadUrl(URL)
Logger connesso a: asus ASUS_Z00AD
--------- beginning of main
[16170] Initialize library(version: 5.0.7a_y.48167 RELEASE)... successfully.
SetAppTypeFace- try to flip, app = b4a.example
Typeface getFontPathFlipFont - systemFont = default#default
SetAppTypeFace- try to flip, app = b4a.example
Typeface getFontPathFlipFont - systemFont = default#default
common created.
Starting remote logger. Port: 35352
Render dirty regions requested: true
Validating map...
After accept
Initialized EGL, version 1.4
Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
Enabling debug mode 0
*** Debugger waiting for connection (0) ***
Application requested CPU execution
0xde108000 Launching thread(s), CPUs 4
*** Debugger waiting for connection (1) ***
*** Service (starter) Create ***
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
primaryArchIs64bit = false
Loading com.google.android.webview version 83.0.4103.83 (code 410408351)
Loaded native library version number "83.0.4103.83"
Flushed 3 samples from 3 histograms.
validate_display:255 error 3008 (EGL_BAD_DISPLAY)
Requires BLUETOOTH permission
** Activity (main) Resume **
Unsupported profile 4 for video/mp4v-es
HW encoder for video/avc is not available on this device.
-1 received
writer error
java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.reportInterruptAfterWait(AbstractQueuedSynchronizer.java:1991)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2025)
at java.util.concurrent.ArrayBlockingQueue.take(ArrayBlockingQueue.java:373)
at anywheresoftware.b4a.remotelogger.Connector$Writer.run(Connector.java:160)
at java.lang.Thread.run(Thread.java:818)
Starting remote logger. Port: 35352
After accept
ImageView1.Initialize("ImageView1")
Activity.AddView(ImageView1,0,0,100%x,100%y)
mj1.Initialize(Me, "mj1")
mj1.Connect("192.168.178.24/", 51042)
I know. You asked me,To me it appears that exoplayer does NOT display HTML files but directly video streams or MP4 files
So do you think it is impossible to view the video stream contained in an HTML page?
The webcam operates in both MPEG and H.264. But I don't know how the Raspberry re-elaborates this video stream. How can I understand it?you have change the server video code
Thanks but there is no change. "TEST 1" and the blank white box appear; no image or video ?
I seem to remember that Erel once wrote that webview is not suitable for viewing video streams. However I have experienced it, it is grateful to play an MP4 file.
B4X:Dim URL As String Dim webview1 As WebView Dim WebViewExtras1 As WebViewExtras webview1.Initialize("webview1") Activity.AddView (webview1,0,0,100%x,100%y) URL="http://p***********i/c****.html" WebViewExtras1.addWebChromeClient(webview1, "WebViewExtras1") webview1.LoadUrl(URL)
header fields are too long for server to interpret
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?