我目前正在尝试将GStreamer集成到iOS项目中.
我已经下载了gstreamer-1.0-devel-1.2.1-ios-universal.pkg并将GStreamer.framework添加到项目中.我在http://docs.gstreamer.com/display/GstSDK/iOS+tutorial+4%3A+A+basic+media+player上关注iOS 教程,上一篇教程工作正常但是在创建基本媒体时播放器,我一直有启动管道的问题,下面是我使用的代码
-(void) app_function{ GstBus *bus; GSource *timeout_source; GSource *bus_source; GError *error = NULL; GST_DEBUG ("Creating pipeline"); /* Create our own GLib Main Context and make it the default one */ context = g_main_context_new (); g_main_context_push_thread_default(context); /* Build pipeline */ pipeline = gst_parse_launch("playbin2 uri=http://docs.gstreamer.com/media/sintel_trailer-480p.webm", &error); if (error) { gchar *message = g_strdup_printf("Unable to build pipeline: %s", error->message); g_clear_error (&error); [self setUIMessage:message]; g_free (message); return; } .... }
我得到错误:无法构建管道:没有元素"playbin2"
我同样下载GStreamer for mac,使用相同的方法(gst_parse_launch()),我可以启动一个内部视频播放器来播放视频.
我想也许插件(playbin2)没有很好地安装或配置,我到处寻找希望找到解决方案,但我没有找到...任何帮助将不胜感激.
提前致谢