Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Adding Quicktime OBJECT to WebView using DOM APIs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding Quicktime OBJECT to WebView using DOM APIs



Title: Re: Adding Quicktime OBJECT to WebView using DOM APIs
Hi again,

I’m having the same problem as Ron now, after updating to a newer Leopard seed resolved my previous problem. Inserting a DOM object (like a video) through the DOM API displays the Quicktime logo only. Loading the same HTML from a webpage displays just fine. (For reference, the HTML I’m using is from http://realdev1.realise.com/rossa/rendertest/quicktime.html)

I think the problem is that the object is not being updated, since I have an NSURLProtocol subclass that should be asked to handle the object, but it is never triggered. I also implemented the ResourceLoadDelegate method willSendRequest, and it does not get called after the node is inserted. In other words, no request is being made to load the resource that is referenced in the <object> node.

Does anyone know why this is happening, or of a way to work around this by forcing WebView to load that specific element?

Thanks,
-Jing


On 7/19/07 10:53 AM, "Darin Adler" <email@hidden> wrote:

On Jul 17, 2007, at 7:11 PM, Ron Anderson wrote:

> I'm trying to embed a quicktime movie in a webpage,
> programmatically.  My WebView can either load an HTML string as the
> web page or have a blank page be loaded, and dynamically add the
> html elements (OBJECT, etc) via the DOM API.  Using the html string
> technique works fine.  When I try to dynamically append an OBJECT
> element to the body element of the existing DOM document, with an
> object that when outputted as HTML to an external file displays just
> fine in Safari, the movie does not display and I get a large blue
> Quicktime logo with a question mark in the middle.

I can't tell from your message here why this is not working; adding
elements with DOM calls should work. Your description doesn't make it
clear what's going wrong. If you file a bug report with some example
code that fails the someone can figure out whether it's a bug in your
code or the framework.

     -- Darin

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

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:

This email sent to email@hidden



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.