mozilla / shumway

Shumway is a Flash VM and runtime written in JavaScript
Apache License 2.0
3.68k stars 396 forks source link

Add RTMP NetConnection support #898

Open yurydelendik opened 10 years ago

yurydelendik commented 10 years ago

The code will use mozTCPSocket, so it needs this interface be available for Shumway code (on chrome or content side)

See also https://github.com/yurydelendik/rtmp.js

jdm commented 10 years ago

TCPSocket is now available from chrome code in nightlies and aurora.

jdm commented 10 years ago
  let TCPSocket = Cc["@mozilla.org/tcp-socket;1"]
                    .createInstance(Ci.nsIDOMTCPSocket);
  let socket = TCPSocket.open("127.0.0.1", 5037, {});
tschneidereit commented 10 years ago

While we can implement this the ShumwayWorker using the sync communication channel (well, or just any channel, really), having TCPSocket in workers will make things much more awesome. That's bug 916199