Plug-ins and HTML

Embedded plug-ins are loaded by Navigator when the user encounters an HTML page with an embedded object with a MIME type registered by a plug-in. When loaded, an embedded plug-in is displayed as part of the HTML document in a rectangular subpart of the page. This is similar to how a GIF or JPEG image is embedded, except that the plug-in can be live and respond to user events (such as mouse clicks).

Plug-in objects are embedded in an HTML page by using the EMBED tag. The syntax of the EMBED tag is:

<EMBED attributes> ... </EMBED> 
Use the following attributes with the EMBED tag:

In addition to these standard attributes, plug-ins may optionally have private attributes to communicate specialized information between the HTML page and the plug-in code. Navigator ignores all non-standard attributes when parsing the HTML, but passes all attributes to the plug-in, allowing the plug-in to examine the attribute list for any private attributes that may modify its behavior.

For example, a plug-in that displays video could have private attributes to determine whether the plug-in should automatically start playing the video, and whether the video should automatically loop on playback. Thus an example EMBED tag could be:

<EMBED SRC="myavi.avi" WIDTH=320 HEIGHT=200 AUTOSTART=true LOOP=true>

Navigator would interpret the SRC tag to load the data file and determine the MIME type of the data, and the WIDTH and HEIGHT tags to size the area of the page handled by the plug-in to be 320 by 200 pixels. Navigator would simply ignore private attributes AUTOSTART and LOOP and pass them to the plug-in with the rest of the attributes. The plug-in could then scan its list of attributes to see if it should automatically start the video and loop it on playback.