mjpeg

How to disable output buffering in PHP

耗尽温柔 提交于 2019-11-26 05:56:19
问题 I wrote a simple relay script that connects to a web camera and reads from the socket, and outputs this data using the print function. The data is MJPG data with boundaries already setup. I just output the data that is read. The problem is PHP seems to be buffering this data. When I set the camera to 1 FPS, the feed will freeze for 7-8 seconds, then quickly display 8 frames. If I set the resolution to a huge size, the camera move at more or less 1 frame per second. I assume then some

Android ICS and MJPEG using AsyncTask

人盡茶涼 提交于 2019-11-26 02:51:20
问题 I modified the MJPEG viewer code from Android and MJPEG to work using an AsyncTask (and thus work on Ice Cream Sandwich (ICS), 4.0.4) and here is my code. If anyone has any suggestions on how to optimize, cleanup, or do something more proper with the code please let me know. Two issues I\'d appreciate help addressing: If you have the device on a stream then lock the screen and unlock the screen it does not resume playing until you either kill and resume the app or rotate the screen. All my

Android and MJPEG

那年仲夏 提交于 2019-11-26 01:46:51
问题 I need to get the mjpeg stream from an IP camera, anyone know the right way do it? I googled a bit and I find this example http://www.anddev.org/mjpeg_on_android_anyone-t1871.html but I\'ve been stucked when I tried to get the stream from another activity called by the main activity. Here the code: Main acitivity package com.test; public class IntentTest extends Activity { /** Called when the activity is first created. */ ListView myListView = null; @Override public void onCreate(Bundle

Android and MJPEG

99封情书 提交于 2019-11-25 20:51:35
I need to get the mjpeg stream from an IP camera, anyone know the right way do it? I googled a bit and I find this example http://www.anddev.org/mjpeg_on_android_anyone-t1871.html but I've been stucked when I tried to get the stream from another activity called by the main activity. Here the code: Main acitivity package com.test; public class IntentTest extends Activity { /** Called when the activity is first created. */ ListView myListView = null; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); myListView =