Dynamic link to the corresponding elements

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Dynamic link to the corresponding elements

dingjianqiao@huaqi.info
Hi All,

    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, respectively.

Thanks!



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

回复: Dynamic link to the corresponding elements

dingjianqiao@huaqi.info
Hi All,

    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, respectively.

    

Thanks!


 
发件人: [hidden email]
发送时间: 2016-10-27 16:47
收件人: [hidden email]
主题: Dynamic link to the corresponding elements
Hi All,

    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, respectively.

Thanks!



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Dynamic link to the corresponding elements

Tim Müller
In reply to this post by dingjianqiao@huaqi.info
On Thu, 2016-10-27 at 16:47 +0800, [hidden email] 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel