Chinaunix首页 | 论坛 | 博客
  • 博客访问: 515710
  • 博文数量: 174
  • 博客积分: 8001
  • 博客等级: 中将
  • 技术积分: 1840
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-04 19:30
文章分类

全部博文(174)

文章存档

2011年(1)

2010年(24)

2009年(149)

我的朋友

分类: LINUX

2009-05-09 23:13:19

In the previous two parts, you have learned many of the internals and their corresponding low-level
interfaces into GStreamer application programming.Many people will, however, not need so much
control (and as much code), but will prefer to use a standard playback interface that does most of the
difficult internals for them. In this chapter, we will introduce you into the concept of autopluggers,
playback managing elements, XML-based pipelines and other such things. Those higher-level interfaces
are intended to simplify GStreamer-based application programming. They do, however, also reduce the
flexibility. It is up to the application developer to choose which interface he will want to use.
你已经学习了相关的底层接口,但是许多情况下,你可以使用高层接口简化你的应用程序开发。应用程序的开发者有权利决定使用哪种接口。
 
Components
GStreamer includes several higher-level components to simplify an application developer’s life. All of
the components discussed here (for now) are targetted at media playback. The idea of each of these
components is to integrate as closely as possible with a GStreamer pipeline, but to hide the complexity of
media type detection and several other rather complex topics that have been discussed in
Part III in GStreamer Application Development Manual (0.10.21.3).
We currently recommend people to use either playbin (see Section 19.1) or decodebin (see Section 19.2),
depending on their needs. Playbin is the recommended solution for everything related to simple playback
of media that should just work. Decodebin is a more flexible autoplugger that could be used to add more
advanced features, such as playlist support, crossfading of audio tracks and so on. Its programming
interface is more low-level than that of playbin, though.
GStreamer目前针对播放媒体提供了几个组件以缩短应用程序开发周期。
Playbin
使用Playbin,只需要像设定元素属性一样,就能获得许多功能。
Decodebin
decodebin是Playbin的自动插件。
XML in GStreamer
用XML的方式存储和加载管道。
 
阅读(1081) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~