81 Commits

Author SHA1 Message Date
Uriziel
a99f7fb241 New... everything 2012-06-26 18:19:27 +02:00
Uriziel
7b5adc9c05 Improved removing watchers
Added 8 sec idle time removal
2012-06-23 17:46:41 +02:00
Uriziel
8df1894524 Added rooms, removed debug prints 2012-06-23 17:31:55 +02:00
Uriziel
f6e6cad1a6 Code a bit more readable, protocol standarized a bit, added better name
handling on server
2012-06-23 15:30:16 +02:00
Uriziel
c5a33875b3 Quick pause-sync fix 2012-06-21 20:56:29 +02:00
Uriziel
fb75c22925 Probably better seeking and syncing 2012-06-21 19:34:40 +02:00
Uriziel
393e6f3306 Fixed config file location 2012-06-21 15:32:12 +02:00
Uriziel
1c4228df1c Seek has now higher priority 2012-06-21 14:59:46 +02:00
Uriziel
950b77bcd7 Fix dla exe 2012-06-21 14:08:08 +02:00
Uriziel
77927e3490 Dodanie brakuj¹cego pliku, dodanie pliku konfiguracyjnego, argumenty
parsowane sa teraz przez ArgumentParser
2012-06-21 13:40:57 +02:00
Uriziel
575c30bbe9 Dla mpc dodana obs³uga config file
refaktoryzacja kodu
2012-06-21 12:30:54 +02:00
Uriziel
3a25110adf poprawiony regexp do seekowania, naprawiony bug ze specjalymi znakami
utf8, komenda s bez argumentow seekuje do 0
2012-06-21 01:49:25 +02:00
Uriziel
4d48787d6c Dodana obs³uga komend z stdin 2012-06-21 01:11:11 +02:00
Tomasz Fluxid Kowalczyk
1705647ddd Fixed race conditions between clients on high latency connections
This works, but code craves for a huge cleanup and refactoring.
2012-02-18 22:08:38 +01:00
Tomasz Fluxid Kowalczyk
d0e23f9b0e Changed protocol, now we're sending timestamps.
Now client gets more precise positions, and lagged packets/latency
spikes shouldn't now cause synching problems. Syncing should be a bit
more precise now in general, when seeking/joining to playing session.
2012-02-18 16:07:12 +01:00
Tomasz Fluxid Kowalczyk
34eb082eef Utilities for local testing with emulated latency and time offset 2012-02-18 16:02:47 +01:00
Tomasz Fluxid Kowalczyk
b428ee1983 Added pretty useless feature: change nick if it`s duplicate 2012-02-15 21:09:50 +01:00
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