After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 439091 - Play video file convenience function
Play video file convenience function
Status: RESOLVED DUPLICATE of bug 424157
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-17 10:35 UTC by Aidan Delaney
Modified: 2007-05-17 11:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed video play convenience function (1.08 KB, patch)
2007-05-17 10:36 UTC, Aidan Delaney
none Details | Review
diff -up version of the patch (1.38 KB, patch)
2007-05-17 10:39 UTC, Aidan Delaney
rejected Details | Review

Description Aidan Delaney 2007-05-17 10:35:11 UTC
I'm a bit dumb.

When I want to play a video file I'd like GStreamer to do all the heavy lifting for me.  This patch proposes a gst_play_video_file(char * uri) function which returns a GstElement configured to play the specified uri.

I'm nowhere a Gstreamer guru at this stage, so the code compiles but probably does not work.  What I want to know is of such a function is reasonable in the Gstreamer API.
Comment 1 Aidan Delaney 2007-05-17 10:36:32 UTC
Created attachment 88326 [details] [review]
Proposed video play convenience function
Comment 2 Aidan Delaney 2007-05-17 10:39:12 UTC
Created attachment 88327 [details] [review]
diff -up version of the patch
Comment 3 Tim-Philipp Müller 2007-05-17 11:36:20 UTC
This looks a lot like bug #424157.

I don't really see the point of this convenience function. It doesn't really do any heavy lifting at all, and the little that it does isn't really entirely right. In order to meaningfully interact with a returned playbin element you still need to know a lot of GStreamer stuff anyway (how to use the bus, handle messages, state changes, buffering, querying, etc.).


I think it makes a lot more sense to put something like this in a separate helper library that then also includes a GtkWidget or QtWidget or whatever, because getting the xoverlay stuff right is the really hard part IMHO, and handling for that can't be in the core. Very few applications that want to play video will be fine with having the video play in a randomly-placed newly-created X window that just pops up somewhere on your desktop and that the application has no control over. Creating a playbin element and setting an URI on it is unlikely to pose a problem for most developers IMHO.



*** This bug has been marked as a duplicate of 424157 ***