JayThomason / Tutti

Tutti is a shared music application for the car being made in conjunction with Audi.
3 stars 1 forks source link

Bugfix: When song plays to end and iterates, Master should broadcast /setSong request to Clients #224

Closed hwray closed 10 years ago

hwray commented 10 years ago

Right now, if a song plays naturally to its end and then rolls over to the next song, the Client phones still show the previous song as "Now playing:". When a song plays to its end, we should have the Master phone (which is the only one actually keeping track of audio playback) broadcast a /setSong request to the Clients to iterate to the next song.

hwray commented 10 years ago

This should be fixed now. In the onCompletionListener for the Jam MediaPlayer, we send the jam's current state to JSON (after calling the global jamLock) and then broadcast it to all Clients. I'll leave this issue open until I get a chance to test with multiple phones.

JayThomason commented 10 years ago

Let me test this real quick so I can close this issue.

JayThomason commented 10 years ago

Haha it updates on the client but not the master.

hwray commented 10 years ago

Hahahahaha

mo progress mo problems

JayThomason commented 10 years ago

done https://github.com/JayThomason/Tutti/commit/c47afa452befcf3ab91ff1f014b2ac391aad0374