MediaHandler Plugin

MediaHandler Plugin

Postby sulleleven on Wed Mar 24, 2004 5:47 pm

Oscar,

I want to go forth and develop a plugin to provide more advanced media handling within pLog. However, I should discuss if I should just make a plugin, or rather work it into the core of codebase. Maybe you can give me your opinion. I would first consider the latter, and if more customizable atrributes are to be added, then maybe at that point I direct focus to make plugin.

First phase is just to add basic media handling of files in the resource galleries. I think we should have a media player for viewing video/audio etc.. using embed tages to utilize web browser plugins for quicktime player, windows media player, real media player and flash player.
Then the gallery templates can be adjusted to display a link to use external player or use embedded web player. If embedded player is selected, it will add specific code to make it happen.
If this is to be sent to the htmlArea or regular textArea, we edit:
/templates/admin/resourcelist.template
and add on to or modify the if/else code here.

I have done all this in similar situation with the Nucleus Web Log Code. It is even easier to achieve these results using pLog.

Phase 2 will add more options and this can either be in form of a plugin or add more to code base.
Options such as:

-Player Object/Embed Parameters
-Inline or Popup Window Player
-Define/Create Player Specific Smarty Templates
-Blog/User data to add together with Media Player
-Additional Options like ratings or Player specific comments
-Icon Associations and Media Logos


Oscar, what are your thoughts on this for both core base and plugin base implementations?

Thanks.

sull
"stay tuned, always "
sulleleven
Lifetype Expert
 
Posts: 179
Joined: Fri Mar 19, 2004 6:37 pm
Location: NY

Postby nexia on Wed Mar 24, 2004 7:06 pm

on my side, i prefer plugins... the plugins manager is already perfect for a per-user-basis configuration... having it core integrated would need other settings... i think...

not everyone needs a media handler, and it also means a load of files to add.. so a plugin is the good alternative...

my 2¢ are free to take!
nexia
 
Posts: 76
Joined: Thu Mar 18, 2004 10:02 pm

Postby sulleleven on Thu Mar 25, 2004 12:34 am

i took a look at several pLog files and it looks like i can simply add some code, not much, to a few of the gallery classes and a few admin templates to achieve basic media handling improvements.

i guess anything more than the basics, plugins are the way to go. i plan to make a plugin which will assist in linking to files on remote streaming or web servers along with the stuff I already mentioned.
"stay tuned, always "
sulleleven
Lifetype Expert
 
Posts: 179
Joined: Fri Mar 19, 2004 6:37 pm
Location: NY

Re: MediaHandler Plugin

Postby phunkphorce on Thu Mar 25, 2004 2:44 pm

sulleleven wrote:Oscar,

I want to go forth and develop a plugin to provide more advanced media handling within pLog. However, I should discuss if I should just make a plugin, or rather work it into the core of codebase. Maybe you can give me your opinion. I would first consider the latter, and if more customizable atrributes are to be added, then maybe at that point I direct focus to make plugin.

First phase is just to add basic media handling of files in the resource galleries. I think we should have a media player for viewing video/audio etc.. using embed tages to utilize web browser plugins for quicktime player, windows media player, real media player and flash player.
Then the gallery templates can be adjusted to display a link to use external player or use embedded web player. If embedded player is selected, it will add specific code to make it happen.
If this is to be sent to the htmlArea or regular textArea, we edit:
/templates/admin/resourcelist.template
and add on to or modify the if/else code here.


So you mean that when the resource is a video, the user would allowed to choose between adding just a link to it, playing it inline or playing it in a pop-up window? Well, if that's the idea, go ahead :)

That's an option I wanted to research a little bit more before releasing 0.3 but I didn't have much time and I didn't want to delay 0.3 any further... Give it a try and let's see what you get!

I have done all this in similar situation with the Nucleus Web Log Code. It is even easier to achieve these results using pLog.

Phase 2 will add more options and this can either be in form of a plugin or add more to code base.
Options such as:

-Player Object/Embed Parameters
-Inline or Popup Window Player
-Define/Create Player Specific Smarty Templates
-Blog/User data to add together with Media Player
-Additional Options like ratings or Player specific comments
-Icon Associations and Media Logos


Oscar, what are your thoughts on this for both core base and plugin base implementations?


Plugins do not have hooks in the admin interface, save only to display a link and to configure them. That is, when you post a an article or add a resource to a post plugins are not being used at all... I don't know how this can be achieved using a plugin. Perhaps we could add an additional page to the "Resource Center" where all these things could be found, as well as some others?

Oscar
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby phunkphorce on Thu Mar 25, 2004 2:46 pm

Now that I think about, I had once an idea for a plugin that could be called something like "ImageEditor" that would allow users to apply effects to images, resize them, crop them, and so on, using both GD or ImageMagick depending on the configuration of the blog... Anybody thinks it'd be useful?

Oscar
phunkphorce
Lifetype Expert
 
Posts: 9028
Joined: Mon Aug 25, 2003 6:34 am
Location: Suomessa

Postby sulleleven on Thu Mar 25, 2004 3:09 pm

Hey,

Well, if that's the idea, go ahead


Yeah, pretty much the idea at least initially. I studied several related pLog files last night and am pretty sure what I will do. I will post here, or maybe in plugin dev board, when I have something going.

Now that I think about, I had once an idea for a plugin that could be called something like "ImageEditor" that would allow users to apply effects to images, resize them, crop them, and so on, using both GD or ImageMagick depending on the configuration of the blog... Anybody thinks it'd be useful?


That would be slick to have. I saw that somewhere recently on eiither an image gallery script or something.
"stay tuned, always "
sulleleven
Lifetype Expert
 
Posts: 179
Joined: Fri Mar 19, 2004 6:37 pm
Location: NY


Return to Requests and Suggestions