Problem with using WebViewer to stream video from IPcam using mjpg-streamer

707 views
Skip to first unread message

shannon

unread,
Jun 24, 2016, 4:12:12 AM6/24/16
to MIT App Inventor Forum

I am working on an app to play streaming video form IP camera

The IP camera is connected to a wifi module which is flash with openwrt and mjpg-streamer.

When my phone is connected to the wifi module and use Chrome to open the url ( http://192.168.8.1:8083/?action=stream )

The browser successfully show the video streaming.

I try to use App inventor with WebViewer to open the url but noting appear.

I have tried to open the url with the build-in web browser of Andriod and find that doesn't work too.

I have spends days to solve the problem but fail. Hope for a helping hand here.

shannon

unread,
Jun 24, 2016, 4:43:47 AM6/24/16
to MIT App Inventor Forum
Also, when using the build-in web browser of android,

The browser starting downloading a file called download file.bin

Abraham Getzler

unread,
Jun 24, 2016, 9:18:23 AM6/24/16
to MIT App Inventor Forum
Try searching for posts here by Peep Prants.  He has gotten live video streaming working.
ABG

Taifun

unread,
Jun 24, 2016, 11:17:16 AM6/24/16
to MIT App Inventor Forum
To be able to play Youtube videos in the webviewer, you have to edit the manifest and add android:targetSdkVersion="14" or higher. Thank you Boban!

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

shannon

unread,
Jun 25, 2016, 11:15:59 PM6/25/16
to MIT App Inventor Forum
It take me sometime to learn how to change the minimum sdk. It now work for YouTube. But it doesn't work for my ipcam. The streaming method is base on mjpg-streamer, which is different from video streaming

Peep Prants

unread,
Jun 26, 2016, 3:58:05 AM6/26/16
to MIT App Inventor Forum
Ai webviewer works like sharm with mjpg webcam stream, without editing manifest file!

You can test this mjpg stream http://194.204.22.125/mjpg/video.mjpg

With my WIEVER app https://play.google.com/store/apps/details?id=est.kussu.viewer

shannon

unread,
Jun 26, 2016, 5:56:16 AM6/26/16
to MIT App Inventor Forum
Problem discover. Instead of using streaming, I use snapshot and refresh the webview frequently using clock function. It works but the quality and response is bad.
Reply all
Reply to author
Forward
0 new messages