Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Questions about writing my first WebKit plugin



Actually, you don't really need the <object><embed>, even for the movie IIRC. The loading of the plug-in, and giving it the bytes etc, is controlled by the URL's mimetype. If you sent the browser directly to the URL for a movie, rather than to an HTML page that contained an embedded movie, it should invoke the plugin anyway because the URL is the correct mimetype.

Hope that makes sense.

Rudi (who wrote and maintains one of the "third-party" PDF plugins).


On Aug 21, 2007, at 11:41 PM, Mac QA wrote:

Hi,

I have just read the "Web Kit Plug-In Programming Topics" document
located at the following URL.

http://developer.apple.com/documentation/InternetWeb/Conceptual/ WebKit_PluginProgTopic/index.html

And then I also reviewed, compiled, and successfully used (after
removing the normal QuickTime plugin) the example WebKit plugin for
viewing a quicktime movie.

/Developer/Examples/WebKit/WebKitMoviePlugIn/

However, walking through these docs and example have left a big
question unanswered for me. How does one create a plugin for handling
content in a non-embeded fashion?

For example, prior to the Apple supplied PDF plugin there was a 3rd
party Safari plugin that displayed PDFs. And this plugin would get
invoked whenever you clicked a link to a PDF file. Clearly this did
not require the <object><embed> type situation that the
WebKitMoviePlugIn example demonstrates. I am intereted in doing
something similar to the PDF type plugin, suchas when a user accesses
a .foo file my plugin would handle it and display the content. Due to
other restrictions this would be an ObjC plugin for WebKit only, not a
Netscape style plugin.

Can anyone provide any tips or point me towards any documentation that
would be helpful? I can't seem to find the right info for doing this
type of a plugin. Thanks!

MacQAGuy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/rsherry% 40adobe.com


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webkitsdk-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webkitsdk-dev/email@hidden

This email sent to email@hidden
References: 
 >Questions about writing my first WebKit plugin (From: "Mac QA" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.