5 ms·
Is this done by capturing the multimedia stream at the TCP level (with node_pcap)?
by Toshio 14y ago
Is this done by capturing the multimedia stream at the TCP level (with node_pcap)?
- gkoberger 14y agoHulu phones home every time anything happens, so I use the add-on to watch for new activity and send it to Node. The Node server is actually pretty dumb -- it just adds people to a room, and "broadcasts" any JSON it gets.
- deleted 14y ago[deleted]
- electrozoic 14y agoWell done! I worked on an Android/Node app a few months ago that also uses socket.io to do the same thing (synchronize video playback among a set of users). I was impressed at how well the Node server performed as the number of users grew, especially compared to a blocking TCP socket implementation.
- novalis 14y agoDid you use any particular js lib to control the video on the players? Or was that part not js. I ask this because I was doing a server/video player that syncs up to 20 slave audio players with the media, to allow for multilanguage, and did not find anything specific.
- electrozoic 14y agoThe video playback app was on Android devices, so it used the regular Android Java APIs. Still, the chatroom approach that gkoberger describes would work for any platform, as long as each player can play, pause, and seek, and have a separate thread that emits and receives events in the chatroom. http://popcornjs.org/ http://popcornjs.org/ appears to be a library for controlling HTML5 video, if that might work for you.
- novalis 14y agoThanks, I will have a look at popcorn. I was tinkering with jPlayer for a bit but it was a hog on the mobile client devices.