3 ms·
Well 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 w
by electrozoic 14y ago
Well 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.