Commit graph

35 commits

Author SHA1 Message Date
Sebastian Dröge
da76b893c7 playback/player: gst-play: Add copyright notice for Brijesh Singh 2015-04-25 14:32:52 +02:00
Brijesh Singh
34c7b45906 playback/player: player: Add media information API
https://github.com/sdroege/gst-player/pull/21
2015-04-25 14:16:08 +02:00
Sebastian Dröge
7ca4b495c2 playback/player: gst-play: Fix compiler warning
gst-play.c:89:11: error: comparison of unsigned expression >= 0 is always true
      [-Werror,-Wtautological-compare]
  if (pos >= 0 && dur > 0) {
      ~~~ ^  ~
2015-04-25 14:03:12 +02:00
Jan Berkel
d270aec9d1 playback/player: ios: Make sure dimensions are valid
Layouting code crashes if 0/0 get passed

https://github.com/sdroege/gst-player/pull/22
2015-04-23 16:27:33 +02:00
Jan Berkel
109e63d7d7 playback/player: ios: Extract online media into plist
https://github.com/sdroege/gst-player/pull/20
2015-04-23 16:25:59 +02:00
Sebastian Dröge
7638d52c47 playback/player: Add VideoToolbox to the iOS project linker flags 2015-04-22 09:35:24 +02:00
Sebastian Dröge
8ba8714b20 playback/player: Stop using GSlice for allocations, it's deprecated soon and slower than malloc in most places 2015-03-06 09:38:16 +01:00
Xavier Claessens
8b41422c77 playback/player: android: Cast pointers to gintptr to simplify code 2015-03-03 18:04:36 +01:00
Sebastian Dröge
5035124050 playback/player: Update Android bindings to the latest API 2015-03-01 14:20:17 +01: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
d828730591 playback/player: Don't skip to next track immediately in gst-play when seeking after the duration
Instead wait for end-of-stream for switching.
2015-02-08 11:52:11 +01:00
Sebastian Dröge
ae46c50138 playback/player: Make state handling more robust and notify the application about our states
The application now will get one of 4 states via a signal:
STOPPED: After EOS, error and when explicitely stopped
BUFFERING: When moving to the lower states, or we get buffering messages,
           also when seeking.
PAUSED and PLAYING: When having reached that state and it's our target

Also we now always first go to PAUSED state before we seek, and also before we
go to PLAYING. This allows us to deterministically change states and makes
everything a bit more robust.

As a side-effect, get rid of the is-playing property. Applications can now get
this from the corresponding signal if they need to know.

Additionally now notify the application about the buffering percentage.

Also fix a few bugs related to state handling and buffering.
2015-02-08 11:52:10 +01:00
Thibault Saunier
97c4cfc670 playback/player: android: Link against GLib 2.0 as it is necessary 2014-11-12 16:36:39 +01: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
7cb352aaa6 playback/player: Implement seek throttling 2014-08-05 19:12:02 +02:00
Sebastian Dröge
038cd47bfb playback/player: Add our own error domain and code 2014-08-03 17:06:26 +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
7071c121b6 playback/player: Add iOS app 2014-08-02 21:11:56 +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
Sebastian Dröge
be4f88ef41 playback/player: Add start of an Android player 2014-07-28 20:13:13 +02:00
Sebastian Dröge
10eabda41b playback/player: Add debug logging 2014-07-28 12:08:12 +02:00
Sebastian Dröge
153efa0077 playback/player: Add a simple Makefile for gst-play 2014-07-28 10:09:04 +02:00
Sebastian Dröge
5c289ec20a playback/player: Port gst-play from gst-plugins-base to GstPlayer 2014-07-27 18:01:39 +02:00