[Bug 681768] New: osxvideosink example for XCode/Cocoa/Interface builder
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Aug 13 07:39:31 PDT 2012
https://bugzilla.gnome.org/show_bug.cgi?id=681768
GStreamer | gst-plugins-good | unspecified
Summary: osxvideosink example for XCode/Cocoa/Interface builder
Classification: Platform
Product: GStreamer
Version: unspecified
OS/Version: Mac OS
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-good
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: gtoonstra at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=221024)
--> (https://bugzilla.gnome.org/attachment.cgi?id=221024)
GStreamer example
This is some example code that demonstrates how gstreamer can be integrated
with current Cocoa applications without occupying the entire window, so it is
embedded into a portion of the window only, leaving some room around the area
for other interactive ui elements. This way you can make media players or
control applications that require a tiny video view, but have rich interactive
requirements around that. I focused on minimalism to keep the example clear.
I'm submitting this to hopefully be integrated with the examples, so that
others working on Mac OSX have a better idea how to work with this.
=====================
README
This is an example of how to integrate gstreamer with osxvideosink without
straying
too far from XCode and the interface builder, where you can also define a
custom
component that will be replaced by a video file. The rest of the user interface
can then
still contain your own components, buttons and elements.
The interface in the example has a custom view, which gets replaced by a
generated view
component from gstreamer (added as a subview).
Resizing has not been implemented, but some boilerplate code is there that
allows
one to retrieve the new width and height after the resize operation. The Apple
docs
also have a demonstration on how to get the new size continuously during a
resize.
The example was built using the GStreamer supplied OSX packages available from
here:
http://docs.gstreamer.com/display/GstSDK/Installing+on+Mac+OS+X
Note how the linking and compilation configuration is done with a file
available in
the framework later on. See:
/Library/Frameworks/GStreamer.framework/Versions/Current/share/xcode
After that, the gst/gst.h file could still not be found, so I had to copy the
"User header paths" to the system paths in the same section to get the code to
compile.
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list