Hi,

I'm happy to announce that we now partially support the Raw Sockets API [1] on Crosswalk upstream. TCPSocket and TCPServerSocket are very functional at the moment, UDP will come next.

There is a nice demo based on jsmpeg [2] that I was using to test the API throughput. It will open a TCP server on your browser and will render any MPEG1 stream you pump to it. Yeah, it will decode the MPEG1 using JavaScript and render in a canvas element. I was surprised with the almost "realtime" performance even when testing on a phone.

You can try it by yourself on Linux, using the latest Crosswalk:

$ xwalk http://tmpsantos.com.br/stuff/jsmpeg

Stream from a webcam if you have one:

$ ffmpeg -s 320x240 -f video4linux2 -i /dev/video0 -f mpeg1video tcp://127.0.0.1:6668

Or stream from your X root:

$ ffmpeg -f x11grab -s [your screen resolution] -i :0.0 -s 320x240 -f mpeg1video tcp://127.0.0.1:6668

Enjoy and please report the bugs. Most important, don't reply telling me there are better ways of implementing realtime video communication in a browser, keep in mind this is a just "why not?" type of demo. :)

[1] http://www.w3.org/TR/raw-sockets
[2] https://github.com/phoboslab/jsmpeg
_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to