Commit graph

87 commits

Author SHA1 Message Date
danny song
76fb77bfe8 playback/player: gtk-play: move play_current_uri after the signal handler registration 2015-06-10 22:30:09 +02:00
Sebastian Dröge
5aa6c468a0 playback/player: player: Change visualization API a bit to be more user friendly and fix some leaks and other bugs 2015-05-30 11:35:25 +02:00
Sebastian Dröge
999365f0d2 playback/player: Fix indention 2015-05-30 10:48:34 +02:00
Brijesh Singh
b69cbd6b70 playback/player: gtk-player: add visualization selection menu item. 2015-05-20 08:24:52 -05:00
Brijesh Singh
571cdae9da playback/player: gtk-play: add external subtitle selection menu 2015-05-19 10:34:49 -05:00
Brijesh Singh
75404ed8e3 playback/player: gtk-play: move duplicate code into one function 2015-05-12 10:59:16 +03:00
Brijesh Singh
562c06c150 playback/player: gtk-play: add Open, Quit, Next and Previous menu items in popup menu. 2015-05-11 08:48:12 +02:00
Brijesh Singh
329902bcda playback/player: gtk-play: hide toolbar in fullscreen mode. 2015-05-11 08:48:12 +02:00
Brijesh Singh
f904897493 playback/player: gtk-play: add fullscreen button 2015-05-08 15:50:07 +02:00
Brijesh Singh
9a7d2f031f playback/player: gtk-play: add playlist loop button. 2015-05-08 15:50:07 +02:00
Brijesh Singh
15b1167746 playback/player: gtk-play: do not set window title in resume button cb.
Window title is set from media-info-updated signal hence
updating the window title in resume button callback will override
the title set from media-info-updated signal.
2015-05-08 10:12:31 +02:00
Brijesh Singh
1b1aed87c5 playback/player: gtk-play: display cover art
We maintain two drawing widgets, image and video. Cover art is drawn in
image widget and video is rendered in video widget. Based on the following
conditions we show either image or video widget:

- if media info does not have active video stream then hide video widget
  and show image widget.
- if media info contains active video stream then show video widget and
  hide the image widget.
2015-05-08 10:12:31 +02:00
Sebastian Dröge
59d822fc2b playback/player: gtk-play: Fix compiler warning
gtk-play.c:269:60: warning: passing 'gint *' (aka 'int *') to parameter of type 'guint *' (aka 'unsigned int *') converts between pointers to integer types
      with different sign [-Wpointer-sign]
      gst_player_video_info_get_pixel_aspect_ratio (video, &par_n, &par_d);
                                                           ^~~~~~
../lib/gst/player/gstplayer-media-info.h:92:57: note: passing argument to parameter 'par_n' here
                (const GstPlayerVideoInfo* info, guint *par_n, guint *par_d);
                                                        ^
gtk-play.c:269:68: warning: passing 'gint *' (aka 'int *') to parameter of type 'guint *' (aka 'unsigned int *') converts between pointers to integer types
      with different sign [-Wpointer-sign]
      gst_player_video_info_get_pixel_aspect_ratio (video, &par_n, &par_d);
                                                                   ^~~~~~
../lib/gst/player/gstplayer-media-info.h:92:71: note: passing argument to parameter 'par_d' here
                (const GstPlayerVideoInfo* info, guint *par_n, guint *par_d);
                                                                      ^
2015-05-07 13:21:52 +02:00
Sebastian Dröge
7396c221ed playback/player: Fix indention 2015-05-07 13:21:02 +02:00
Brijesh Singh
1232e80e20 playback/player: gtk-play: add track selection menu 2015-05-07 13:20:35 +02:00
Brijesh Singh
bbc6f056b1 playback/player: gtk-play: variable rename for consistency
rename media_info varible holding button state to be consistent with others.
2015-05-07 13:20:35 +02:00
Brijesh Singh
653c8c973e playback/player: gtk-play: handle duplicate uri in playlist
current logic does not play all the files from playlist if the list contains
a duplicate uris.
2015-05-07 13:20:35 +02:00
Brijesh Singh
88e7131ae7 playback/player: gtk-play: set window title from media information
If media contains title then use it to set player window title.
2015-05-07 13:20:35 +02:00
Brijesh Singh
611f3cde4b playback/player: gtk-play: remove gtk deprecated API. 2015-05-07 13:20:35 +02:00
Sebastian Dröge
bf8604dcf3 playback/player: player/gtk: Fix indention 2015-04-26 18:33:00 +02:00
Brijesh Singh
81238fdbcd playback/player: gtk-play: add media information window 2015-04-26 18:33:00 +02:00
Sebastian Dröge
b7a1198170 playback/player: Add copyright header to GTK player 2015-03-01 14:04:00 +01:00
Sebastian Dröge
0b7383c104 playback/player: Make it possible to call play()/pause() after EOS to restart playback from the beginning 2015-03-01 14:01:17 +01:00
Sebastian Dröge
6342159440 playback/player: Fix indention 2015-03-01 13:59:03 +01:00
Sebastian Dröge
6f88388819 playback/player: Remove gst_player_is_playing()
The current state is now notified via the state-changed signal, and in
the GTK UI it was only used to keep track of the desired state.
2015-02-27 09:46:02 +02:00
Ross Burton
d0ef447da9 playback/player: gtk-play: show a file chooser if no URIs were passed 2015-02-27 09:41:17 +02:00
Sebastian Dröge
d0dc785d77 playback/player: Fix indention with gst-indent 2014-08-07 10:59:37 +02:00
Sebastian Dröge
adf40eeefe playback/player: GTK: Fix prev/next button insensitivity logic in the EOS handler 2014-08-06 16:52:22 +02:00
Sebastian Dröge
ad694a24ea playback/player: GTK: Turn checks that must not fail into assertions in prev/next logic 2014-08-06 16:45:09 +02:00
Sebastian Dröge
ead64d43fa playback/player: GTK: Fix logic for setting the prev/next button insensitive at the end/beginning of the playlist 2014-08-06 16:45:03 +02:00
Parthasarathi Susarla
a622cb0d2c playback/player: GTK: Improvements to the GTK+ player
This patch contains a few improvements to the gtk-player:
* Uses unified play/pause button.
* Adds a Skip Previous/Next button.
* Volume control
* Takes multiple files/uri's as arguments.
* Switches to the next track (if any) when the current track
  reaches and end.

https://github.com/sdroege/gst-player/pull/1
2014-08-06 16:44:54 +02:00
Sebastian Dröge
e85d26115a playback/player: Move dispatch-to-main-context out of the constructor and make it a normal property 2014-08-03 16:08:14 +02:00
Sebastian Dröge
e644c61286 playback/player: Always notify about video dimension changes
Without video we will notify width=height=0
2014-08-03 15:10:13 +02:00
Sebastian Dröge
4b9da857c0 playback/player: Add a single-include header 2014-08-03 12:47:27 +02:00
Sebastian Dröge
090c766562 playback/player: Add initial build system with docs and tests and magic 2014-08-03 12:38:37 +02:00
Sebastian Dröge
b34e62884c playback/player: Move library around into a proper directory 2014-08-02 20:33:38 +02:00
Sebastian Dröge
3352d5aee0 playback/player: Add GTK+ sample application 2014-07-30 16:18:01 +02:00