GNOME Bugzilla – Bug 681768
osxvideosink example for XCode/Cocoa/Interface builder
Last modified: 2013-08-21 19:57:51 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.
Created attachment 221025 [details] README file.
Please report that at http://bugs.freedesktop.org against the GStreamer SDK project. The SDK project is separate from the GStreamer project.