Support and General Use > Plugins/Viewers

Help with "plugin_load" function

<< < (2/3) > >>

GodEater:

--- Quote from: jesteban100 on May 28, 2008, 02:57:47 PM ---what I exactly need is to load an mpg file from any plugin, i've tought in the "plugin_load" function, but if anyone know a different way...help me

--- End quote ---

What exactly are you asking here?

If you wish to load a .mpg file from the plugin, then the plugin_load() function is not what you want at all.

If what you mean is you wish to launch the MpegPlayer Plugin though, then plugin_load() *is* what you're after.

Please clarify!

jesteban100:
I just wanna load a .mpg file from my plugin

GodEater:
I'm curious why though, what is your plugin going to do differently than MpegPlayer ?

jesteban100:

--- Quote from: gratt on May 28, 2008, 02:00:37 PM ---You need to add plugin_load() into the plugin struct
in plugin.c/h to access it from a plugin.
GRaTT

--- End quote ---

I finally did it, thanks a lot, I’ve founded that the position of the new element of the api structure must to be the same in plugin.h and plugin.c
Sadly I can't load the mpg file: when I use the "plugin_load();" function it opens the plugin mpegviewer but immediately shows the error "Error opening file: -1". I don’t know why because if I start the mpg file from the Files menu it runs properly...

Dear GodEater, I’m happy to make you get curious  ;).
In my plugin I'm loading files .bmp with pictures of my last vacations. I have some videos and I want to load them selecting the picture. That is just to have fun.

I've seen that using 'plugin_load();' -maybe- isn't the solution, anybody has another idea??

Thx.

GodEater:
So in fact you're NOT doing what you said - you ARE trying to launch MpegPlayer from within your already running plugin.

This is not likely to be easy to acheive.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version