' https://www.b4x.com/android/forum/threads/b4x-class-mjpeg-decoder.73702/#content
Sub Globals
Dim ImageView3 As ImageView
Dim ImageView2 As ImageView
Dim ImageView1 As ImageView
Dim ImageView4 As ImageView
Private click As Button
Private mj1 As MJPEG
End Sub
Sub Activity_Create(FirstTime As Boolean)
Activity.LoadLayout("1")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
CallSub(ImageDownloader, "ActivityIsPaused")
End Sub
Sub click_Click
mj1.Initialize(Me, "mj1")
mj1.Connect("192.168.117.29/myimage", 80) 'this stream uses a non-standard port
End Sub
Sub mj1_Frame(bmp As B4XBitmap)
ImageView1.SetBackgroundImage(bmp)
End Sub