Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Streaming Media - Quicktime Javascript Controls
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Streaming Media - Quicktime Javascript Controls



At 11:09 AM -0400 6/16/05, Ken Villines wrote:
Hi Eric,
Thanks for getting back to me on this. I wanted to let you know that if I
change the embedding to http:// so the file streams through that protocal
it works. The only problem is I have some javascript that now throws an
unhandled exception. This can be seen here in Firefox:

Error: uncaught exception: [Exception... "Component returned failure code:
0x80004005 (NS_ERROR_FAILURE) [nsIQTScriptablePlugin.GetRate]"  nsresult:
"0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame ::
http://www.kenvillines.com/quicktime/qtplayer.js :: isPlaying :: line 7"
data: no]

Again if I use a progressive download media file all this works fine. The
streaming file with http gives this exception. The Javascript controls
work OK though. What do you think? Is there another bug here? It looks
like it...

Hmm, I don't see any errors when I change your html to embed a movie trailer from apple.com, but the scripting API will return an error any time it gets an error from QuickTime, so you should be prepared to handle errors.

I don't see a call to "isPlaying" in your posted pages so I don't know what is happening, but I guess that the movie hasn't loaded enough to query that property. You can use the "PluginStatus" and "MaxTimeLoaded" properties to find out how the download is progressing to avoid this kind of problem.

Eric Carlson
QuickTime Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Streaming Media - Quicktime Javascript Controls (From: Ken Villines <email@hidden>)
 >Re: Streaming Media - Quicktime Javascript Controls (From: Eric Carlson <email@hidden>)
 >Re: Streaming Media - Quicktime Javascript Controls (From: "Ken Villines" <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.