Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/controls.py
Commit message (Collapse)AuthorAgeFilesLines
* Check availability of streamManuel Kaufmann2013-01-291-8/+12
| | | | | | | | | | | It's possible to have some streams in the playlist that are not available at the moment the user double-clicks the row or presses the Play button, for example because they are in a Pen Drive. So, this patch checks for the availability of the stream before start playing it and avoiding gstreamer to fail. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Set total_time just once per streamManuel Kaufmann2013-01-291-11/+23
| | | | | | | | When the 'play' signal is emitted, we ask for the duration of the stream until we get it. Then, we set it into the label and stop the GObject.timeout_add. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Make reseek more CPU friendlyManuel Kaufmann2013-01-251-23/+31
| | | | | | | | | When the user starts draging the seeker Jukebox will really re-seek past 250 miliseconds in the same value. This allows to re-seek the stream faster because the proccessing is done just when it's really necessary. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Proper sensitive on control buttonsManuel Kaufmann2013-01-251-7/+26
| | | | | | | | | | When there is no streams in the playlist we set the sensitive to False for all the control buttons on the toolbar. If one stream is added Play button is enabled and will play the first stream of the playlist. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Show 'No media' message when Jukebox starts from scratch SL #4158Manuel Kaufmann2013-01-251-2/+7
| | | | | | | | When the user starts a new instance of Jukebox the 'No media' message is shown with a button to 'Choose media files' that opens the Object Chooser. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Controls class modularizedManuel Kaufmann2013-01-251-17/+135
| | | | | | | All the methods related to Controls class on the JukeboxActivity were moved to the Controls class. Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
* Better control over the playlistManuel Kaufmann2013-01-251-2/+27
| | | | | | | | | | | Use signals ('play-index' for example) to communicate between the main window and the playlist. Save and Load playlists and Add track methods are reduced in complexity. Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>
* Modularization of classesManuel Kaufmann2013-01-251-0/+134
- Put each class in a different .py file - Rename jukeboxactivity.py to activity.py to make this more standard Signed-off-by: Manuel Kaufmann <humitos@gmail.com> Reviewed-by: Gonzalo Odiard <gonzalo@laptop.org>