Autobahn WebSockets for Python was designed to allow for streaming data over WebSockets.
The ciritical component you need is end-to-end ("app level") flow-control:
That being said:
a) Autobahn for Android does not support streaming (different use cases)
b) I am sceptical whether WebSockets is the right protocol anyway for doing media streaming,
since it's TCP based.
You may want to look at
an upcoming standard for media streaming which uses WS/TCP only for signaling,
and UDP for media transport AFAIK.
If you still want to go with WebSockets, I'd suggest ripping off the framing code from
Autobahn and use your own networking code ..
Am 28.11.2011 13:39, schrieb Janus Troelsen:
I am trying to stream video from the camera. This means I would be
streaming around 30 * 700000 bytes per second. Obviously I will have
to drop a lot of frames, but I can't really know how many frames to
drop, since I don't know how fast the are being sent.
I already have my own networking thread, so nothing would block.
On Mon, Nov 28, 2011 at 12:38 PM, tgo<tobias.o...@gmail.com> wrote:
Autobahn queues wrapped WebSocket messages to be sent via the Android
message queue of the background writer (WebSocketWriter).
sendXXX() are all non-blocking, since they are called from the UI
thread and must not block.
I can't see why you would want that to block. If it did, your UI would
What are you ultimately trying to achieve?
On Nov 28, 2:29 am, Janus Troelsen<ysan...@gmail.com> wrote:
Oh, I forgot to say, I am of course using AutobahnAndroid, from Git.