StratusBase LLC
StratusBase LLC

Reputation: 285

Stream Binary Data over WebSockets using Ratchet for PHP

I've successfully setup a WebSocket server using Ratchet for PHP on Windows/IIS. I went with Ratchet's available WAMP(WebSocket Application Messaging Protocol) setup so that I have Pub/Sub and RPC capabilities. That's been great for minor things like chatting or simple updates. What I am curious about is how to stream raw binary data (like audio/video) to a target audience (1 or more people)...

Server(s) :
- Windows 7 (64-bit) / Windows 2008 Server Enterprise (64-bit)
- PHP 5.4.x
- Ratchet (WebSocket Server) http://socketo.me/docs/wamp

Client Setup:
- Autobahn|JS http://autobahn.ws/js/
- when.js https://github.com/cujojs/when

Is there a solution out there using my setup that allows me to stream binary data to a target audience? Thanks in advance!

Upvotes: 2

Views: 4701

Answers (2)

Khalil Laleh
Khalil Laleh

Reputation: 1238

Somebody has a fork for Ratchet and he claims implementing binary data send/receive.

Take a look at this link.

And please don't forget to mark this answer as your accepted solution. Good luck

Upvotes: 1

dkt
dkt

Reputation: 146

Technically you can setup the streaming like this: Send and receive binary data over web sockets in Javascript?

And then the playback of the audio: Streaming Binary with Node.js and WebSockets

Haven't found anything useful for video playback via streamed data and i think currently it's either unavailable or highly experimental.

Upvotes: 1

Related Questions