Dynamic link to the corresponding elements

Tim Müller tim at centricular.com
Thu Oct 27 09:31:52 UTC 2016


On Thu, 2016-10-27 at 16:47 +0800, dingjianqiao at huaqi.info wrote:

Hi,

>     I want to realize the application of multimedia player.But  I
> have a problem. How to implement that the source  pads (video, audio)
> are added
> dynamicly are connected to the corresponding decoder elements, respec
> tively.

Have you considered using a higher level API such as playbin or
GstPlayer? Then you don't need to bother with such things, it will be
taken care of for you.

If you want to handle it yourself you need to use the "pad-added"
signal on the demuxers.

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list