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 681768 - osxvideosink example for XCode/Cocoa/Interface builder
osxvideosink example for XCode/Cocoa/Interface builder
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
unspecified
Other Mac OS
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-13 14:39 UTC by gtoonstra
Modified: 2013-08-21 19:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
GStreamer example (102.03 KB, application/zip)
2012-08-13 14:39 UTC, gtoonstra
Details
README file. (1.18 KB, application/octet-stream)
2012-08-13 14:39 UTC, gtoonstra
Details

Description gtoonstra 2012-08-13 14:39:25 UTC
Created attachment 221024 [details]
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.
Comment 1 gtoonstra 2012-08-13 14:39:50 UTC
Created attachment 221025 [details]
README file.
Comment 2 Sebastian Dröge (slomo) 2013-08-21 19:57:51 UTC
Please report that at http://bugs.freedesktop.org against the GStreamer SDK project. The SDK project is separate from the GStreamer project.