How to force Playbin to select a source plugin for specific URI?

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

How to force Playbin to select a source plugin for specific URI?

mistr47
How to notify Playbin to use my source plugin for specific URI (e.g http://asdf.com/file.avi)
I have written a source plugin and i would like playbin to call this source plugin for specific type of URL.
What changes do i need to make?

I have added uri handling capabilities, set RANK to primary.


Reply | Threaded
Open this post in threaded view
|

Re: How to force Playbin to select a source plugin for specific URI?

michael smith-6-3
On Tue, Mar 23, 2010 at 1:14 AM, mistr47 <[hidden email]> wrote:
>
> How to notify Playbin to use my source plugin for specific URI (e.g
> http://asdf.com/file.avi)
> I have written a source plugin and i would like playbin to call this source
> plugin for specific type of URL.
> What changes do i need to make?
>
> I have added uri handling capabilities, set RANK to primary.

Your plugin should be used automatically by playbin if it implements
the URI handler interface and is the highest-ranked available element
for that URI scheme.

Mike

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to force Playbin to select a source plugin for specific URI?

mistr47
Thanks Mike for the quick reply.

you are right, Playbin does pick my source plugin to handle url. But the problem is i do not want it to pick my plugin for every url of type (http://xxxxxx.xxx/xxx) i just want it to call my source plugin when the url is of lets say type (http://xxxxxx.xxx/x.AVI). How/where to add this functionality.

Right now there are two source plugins for URL handling one is mypluginsrc and the other is default souphttpsrc plugin. So i want playbin to call souphttpsrc for every url except when the url is of type abc.avi.

-Cheers
Reply | Threaded
Open this post in threaded view
|

Re: How to force Playbin to select a source plugin for specific URI?

michael smith-6-3
On Tue, Mar 23, 2010 at 10:21 AM, mistr47 <[hidden email]> wrote:
>
> Thanks Mike for the quick reply.
>
> you are right, Playbin does pick my source plugin to handle url. But the
> problem is i do not want it to pick my plugin for every url of type
> (http://xxxxxx.xxx/xxx) i just want it to call my source plugin when the url
> is of lets say type (http://xxxxxx.xxx/x.AVI). How/where to add this
> functionality.

You cannot and should not do this. If your source element is specific
to a single format, then it's not an http source - so you shouldn't
pretend it is. Presumably instead it's some sort of
combined-http-source-and-avi-demuxer. Instead, you should fix things
up - e.g. use a normal http source, and fix whatever problem you have
with avidemux.

Mike

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel