plugins

  • Thread starter Ron Croonenberg
  • Start date
R

Ron Croonenberg

Hello,

We have a summer student project here and part of that project is to
build a plugin. (A plugin "a la" a sound player. The player needs to be
"plugged in" for a "session" automatically and do something with data.
(I won't go in all the details)

We like to embed it in a webpage like :

<EMBED
src="http://website/data/summer.dat"
width=100
height=100
type="application/x-control-data"
pluginspage="http://website/summer/getdataplayer
</EMBED>

question is, is the an example (skeleton) on how to build a plugin and
how does the pluginspage need to be made ?


thanks,

Ron
 
C

Chris Smith

Ron Croonenberg said:
We have a summer student project here and part of that project is to
build a plugin. (A plugin "a la" a sound player. The player needs to be
"plugged in" for a "session" automatically and do something with data.
(I won't go in all the details)

Please do go into more details. That description of a "plugin" doesn't
sound like the normal use of the word. What exactly do you want?
 
R

Ron Croonenberg

Ok,

basically we want the same thing as the flash/shockwave plugin for
playing .swf files in a webpage (using embed).
The "plugin" needs to be downloaded and embedded in the html page
automatically.

similar to this:
<EMBED
src="http://lads.myspace.com/mini/mini.s...GxheWVyLm15c3BhY2UuY29tLw==&i=MA==&a=VHJ1ZQ=="
quality=high WIDTH="295" HEIGHT="51" NAME="mp3player" ALIGN=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">
</EMBED>

Only for the value of src we are going to use a file with data.
the plugin is an apllication for handling the data with some user
interaction.

I am looking for a very simple example for the plugin and the pluginspage.


(I hope the example above doesn't start playing here)

thanks,

Ron
 
C

Chris Smith

Ron Croonenberg said:
basically we want the same thing as the flash/shockwave plugin for
playing .swf files in a webpage (using embed).
The "plugin" needs to be downloaded and embedded in the html page
automatically.

Okay, so there are two ways of approaching this:

1. Look at the proprietary APIs for integrating your code into Internet
Explorer or Netscape. This can't be done in pure Java, as all of the
interesting parts will use native code.

2. More relevantly to this newsgroup, write an applet. Your users will
need to have the Java Plugin installed, rather than your custom plugin.
The Java Plugin will load and run your code, which will be able to load
and display the data.

If you want #2, look up applets and feel free to ask more specific
questions here. Otherwise, you may have a look around for newsgroups
that are relevant for writing plugin code for IE and Netscape.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top