Custom Plugin

21 views
Skip to first unread message

cthrax

unread,
Apr 19, 2011, 3:21:06 PM4/19/11
to bst-player
Is it possible to create custom plugins for the bst-player api?

Sikiru Braheem

unread,
Apr 20, 2011, 4:07:26 AM4/20/11
to bst-p...@googlegroups.com

> Is it possible to create custom plugins for the bst-player api?
>
What do you mean by custom plugins?

The API is a GWT wrapper for media plugins in the browser and not a
media plugin on its own.


Myles Bostwick

unread,
Apr 20, 2011, 10:04:45 AM4/20/11
to bst-p...@googlegroups.com

Yes. So I have a custom media plugin I would like to wrap and use the bst api.

> --
> You received this message because you are subscribed to the Google Groups "bst-player" group.
> To post to this group, send an email to bst-p...@googlegroups.com.
> To unsubscribe from this group, send email to bst-player+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/bst-player?hl=en-GB.
>

Myles Bostwick

unread,
Apr 20, 2011, 10:26:21 AM4/20/11
to bst-p...@googlegroups.com

When I was looking under the hood it looked like there was a lot of external classes that depended on switch statements using the plugin whim as the case.  PluginUtil, PluginWidget and possibly others? Or was I misreading the intent of those switch statements?

On Apr 20, 2011 8:18 AM, "Sikiru Braheem" <sbra...@gmail.com> wrote:
> Yes it is possible. all that is required is to implement the
> AbstractMediaPlayer class and other required interfaces and then provide
> native implementation(s) to interact with the custom plugin.
>
> You may take a "under the hood" look at existing implementations.
>
> Regards

>
> On 4/20/2011 3:04 PM, Myles Bostwick wrote:
>>
>> Yes. So I have a custom media plugin I would like to wrap and use the
>> bst api.
>>
>> On Apr 20, 2011 2:08 AM, "Sikiru Braheem" <sbra...@gmail.com
>> <mailto:sbra...@gmail.com>> wrote:
>> >
>> >> Is it possible to create custom plugins for the bst-player api?
>> >>
>> > What do you mean by custom plugins?
>> >
>> > The API is a GWT wrapper for media plugins in the browser and not a
>> > media plugin on its own.
>> >
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> Groups "bst-player" group.
>> > To post to this group, send an email to bst-p...@googlegroups.com

>> > To unsubscribe from this group, send email to
>> bst-player+...@googlegroups.com

Scott Selikoff

unread,
Apr 20, 2011, 10:10:37 AM4/20/11
to bst-p...@googlegroups.com, Myles Bostwick
Hi Myles,

I think it makes sense not to put one plugin inside of another.  This is akin to trying to package a jar inside of another jar.  Feel free to make your own plugin, just put that is requires the bst-player plugin as a required library.

You can download the source and compile it into your own plugin, but you'll get the most out of the API if you let others substitute the the most up-to-date version of the bst-player plugin rather than relying on you to compile every version.  Also, if the individual using your plugin already uses bst-player, there could be naming conflicts.

Cheers,
-Scott

Sikiru Braheem

unread,
Apr 20, 2011, 10:17:16 AM4/20/11
to bst-p...@googlegroups.com
Yes it is possible.  all that is required is to implement the AbstractMediaPlayer class and other required interfaces and then provide native implementation(s) to interact with the custom plugin.

You may take a "under the hood" look at existing implementations.

Regards

On 4/20/2011 3:04 PM, Myles Bostwick wrote:

Sikiru Braheem

unread,
Apr 26, 2011, 5:58:26 PM4/26/11
to bst-p...@googlegroups.com
Yes you are right,  creating custom plugins may not be straight forward without modifying some of those classes.  It should be possible to find a way around that.  I have opened an issue [http://code.google.com/p/bst-player/issues/detail?id=47] to better track the situation.

Regards.

Sikiru Braheem

unread,
May 4, 2011, 1:07:44 PM5/4/11
to bst-player
Reply all
Reply to author
Forward
0 new messages