64 Commits

Author SHA1 Message Date
Tomasz Fluxid Kowalczyk
caaa176247 Drop client after 1 minute of not responding for pings 2012-02-15 20:37:58 +01:00
Tomasz Fluxid Kowalczyk
4e8cd4b6b3 Allow more than one "last ping", this should make stuff better on worse connections 2012-02-15 20:27:34 +01:00
Tomasz Fluxid Kowalczyk
bccbda23b7 Schedule next ping immediately after sending one 2012-02-15 19:49:01 +01:00
Tomasz Fluxid Kowalczyk
1e23e98d78 Calculate clock offset within 20 first pings and then freeze it 2012-02-15 19:45:05 +01:00
Tomasz Fluxid Kowalczyk
e25ba023ed Add simple client clock offset calculating logic 2012-02-11 14:47:41 +01:00
Tomasz Fluxid Kowalczyk
1b7a9984f9 Fix UnboundLocalError in server 2012-02-05 22:30:27 +01:00
Tomasz Fluxid Kowalczyk
414babf198 Update README and +x launchers 2012-02-05 16:20:22 +01:00
Tomasz Fluxid Kowalczyk
2fefd7dd28 Synchronize client with player better
This prevents seeking loops between clients.
2012-02-05 14:56:23 +01:00
Tomasz Fluxid Kowalczyk
35b1288b79 Add ping to seek position 2012-02-05 14:47:48 +01:00
Tomasz Fluxid Kowalczyk
80111137a7 Prevent client from sending seek multiple times 2012-02-05 14:46:18 +01:00
Tomasz Fluxid Kowalczyk
965e3c2d3c Don`t spam with what is playing now in mpc 2012-02-04 21:24:23 +01:00
Tomasz Fluxid Kowalczyk
41a9448597 Implemented seek, allowed only slowdown in fine-synchro 2012-02-04 21:13:33 +01:00
Tomasz Fluxid Kowalczyk
2e0ed52e1c Show who paused/unpaused 2012-02-04 18:26:29 +01:00
Tomasz Fluxid Kowalczyk
3c0b8154ac Show joins, lefts, and present people after join 2012-02-04 18:07:54 +01:00
Tomasz Fluxid Kowalczyk
eaaa661099 First broadcast of filename being playing 2012-02-04 17:43:37 +01:00
Tomasz Fluxid Kowalczyk
8b11382e98 Simplify argument count checking 2012-02-04 17:29:03 +01:00
Tomasz Fluxid Kowalczyk
671eb79c08 Changes in protocol
* Escape characters and allow more than one string with spaces
* Time is now in miliseconds
* More proper error handling (though argument count checking need
  improvement)
2012-02-04 16:26:38 +01:00
Tomasz Fluxid Kowalczyk
2b472fa802 Inform about filename in other way 2012-02-04 13:31:19 +01:00
Tomasz Fluxid Kowalczyk
42693afe08 mpc doesn`t support set_speed - to be worked on later, stub it for now 2012-02-03 22:55:36 +01:00
Tomasz Fluxid Kowalczyk
423ac2252c Further changes and fixes in MPC support, pushed filename to manager 2012-02-03 22:33:09 +01:00
Tomasz Fluxid Kowalczyk
8ed7f061bc First stage of MPC support refactoring 2012-02-02 23:18:10 +01:00
Tomasz Fluxid Kowalczyk
204317762d Return position 0 instead of None 2012-02-02 23:16:58 +01:00
Tomasz Fluxid Kowalczyk
ccfb065ad7 Move code around a bit and renamed some functions
Merged asking for and updating status player into one operation, this
will help simplifying MPC player control.
2012-02-02 22:23:06 +01:00
Tomasz Fluxid Kowalczyk
bbd8bb0cfc Reset pause when last watcher leaves 2012-02-02 22:18:54 +01:00
Tomasz Fluxid Kowalczyk
cf488bd995 Fix joining to sessions which have longer playing time. It works but still needs some polishing. 2012-02-01 00:23:54 +01:00
Tomasz Fluxid Kowalczyk
0ba0581063 Make handling mplayer and connection a bit nicer. Changes to MPC will follow later, after I solve other problems. 2012-01-31 23:13:16 +01:00
Tomasz Fluxid Kowalczyk
89b48934b7 Fixed synchronization, but joining new mplayer to already playing session still fails 2012-01-30 22:59:28 +01:00
Tomasz Fluxid Kowalczyk
70c18ba17f Delay sending pause to mplayer to give it time to initialize, handle mplayer exit in a nicer way. This commit breaks synchronizng mplayer, it will be fixed later. 2012-01-30 22:33:46 +01:00
Tomasz Fluxid Kowalczyk
0aaccf6f97 Make client working with different versions of MPC and different localisations... 2012-01-29 23:02:33 +01:00
Tomasz Fluxid Kowalczyk
069de33303 Sending speed setting to mplayer causes weird sound artifacts 2012-01-29 22:08:10 +01:00
Tomasz Fluxid Kowalczyk
dd652c3a0c Remove wrong file and fix setup 2012-01-29 22:05:48 +01:00
Tomasz Fluxid Kowalczyk
2484ffa6b5 Preparing for windows distro 2012-01-29 21:47:42 +01:00
Tomasz Fluxid Kowalczyk
c634329d9b Matching may fail of MPC is down 2012-01-29 21:38:40 +01:00
Tomasz Fluxid Kowalczyk
7541c8d1b2 Small README fix 2012-01-29 21:06:17 +01:00
Tomasz Fluxid Kowalczyk
1a52b7f303 (Uriziel) Fix controlling MPC 2012-01-29 21:03:18 +01:00
Tomasz Fluxid Kowalczyk
39761012eb Cleanup README.md from useless stuff 2012-01-29 20:18:38 +01:00
Tomasz Fluxid Kowalczyk
c5383413ba Added setup.py 2012-01-29 20:16:45 +01:00
Tomasz Fluxid Kowalczyk
9eb639ad4e Rename scripts 2012-01-29 20:07:23 +01:00
Tomasz Fluxid Kowalczyk
189064060a Add runner for MPC 2012-01-29 19:41:05 +01:00
Tomasz Fluxid Kowalczyk
3394d6af22 Try other approach at handling pause 2012-01-29 19:36:24 +01:00
Tomasz Fluxid Kowalczyk
f26fcbf14c (Uriziel) Add MPC support 2012-01-29 19:35:36 +01:00
Tomasz Fluxid Kowalczyk
c2e9f27a50 Add reponse handling utils for MPC 2012-01-29 19:34:42 +01:00
Tomasz Fluxid Kowalczyk
76518dcf6f Don't modify time by lag if paused 2012-01-29 17:04:27 +01:00
Tomasz Fluxid Kowalczyk
4bbf635c6b Cleanup prints 2012-01-29 16:18:38 +01:00
Tomasz Fluxid Kowalczyk
c9bb239506 Add one more argument to state message, pausing with lagged connection should now work better (at all) 2012-01-29 15:16:26 +01:00
Tomasz Fluxid Kowalczyk
5b529bf36f If globally paused, don't bother with setting speed 2012-01-29 14:48:49 +01:00
Tomasz Fluxid Kowalczyk
09df36fccf Ping did not work, fixed it 2012-01-29 13:56:18 +01:00
Tomasz Fluxid Kowalczyk
77ff8af256 Make reactor stop after mplayer quit. 2012-01-28 23:12:58 +01:00
Tomasz Fluxid Kowalczyk
9a6a593452 Use constant speed to reach so-so synchronization 2012-01-28 23:08:34 +01:00
Tomasz Fluxid Kowalczyk
798d71b5e9 Try harder at synchronizing players by modifying playback speed 2012-01-28 22:24:15 +01:00