kdebase/nsplugins/viewer

Kevin DeKorte kdekorte at yahoo.com
Wed Mar 5 23:06:12 GMT 2003


George,

Ok I am looking at this URL

http://www.apple.com/switch/ads/janieporche.html

Content I am interested in:

			<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="480" 
HEIGHT="376" 
CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0">
			<PARAM NAME="controller" VALUE="false">
			<PARAM NAME="href" 
VALUE="http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov">
			<PARAM NAME="src" 
VALUE="http://a944.g.akamai.net/7/944/51/a814f5c0bdf5ef/www.apple.com/switch/ads/images/janieporche_ctp2.mov">
			<PARAM NAME="AUTOPLAY" VALUE="TRUE">
			<PARAM NAME="CONTROLLER" VALUE="FALSE">
			<PARAM NAME="HREF" 
VALUE="http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov">
			<PARAM NAME="TARGET" VALUE="myself">
			<EMBED WIDTH="480" TARGET=MYSELF 
SRC="http://a944.g.akamai.net/7/944/51/a814f5c0bdf5ef/www.apple.com/switch/ads/images/janieporche_ctp2.mov" 
HREF="http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov" 
HEIGHT="376" PLUGINSPAGE="http://www.apple.com/quicktime/download/index.html" 
CONTROLLER="false"></OBJECT></TD>

My log file shows the following with konqueror 3.1. Looks like it is passing 
the PARAM attributes from the OBJECT, but not the inline attribute values of 
either OBJECT or EMBED.

Argument Name: CONTROLLER
Argument Value: false
Argument Name: HREF
Argument Value: 
http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d
80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov
Argument Name: SRC
Argument Value: 
http://a944.g.akamai.net/7/944/51/a814f5c0bdf5ef/www.apple.com/switch/ads/images/janie
porche_ctp2.mov
Argument Name: AUTOPLAY
Argument Value: TRUE
Argument Name: CONTROLLER
Argument Value: FALSE
Argument Name: HREF
Argument Value: 
http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d
80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov
Argument Name: TARGET
Argument Value: myself
Argument Name: __KHTML__PLUGINBASEURL
Argument Value: http://www.apple.com/switch/ads/janieporche.html
Argument Name: __KHTML__CLASSID
Argument Value: clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B
Argument Name: __KHTML__CODEBASE
Argument Value: http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0
 arguments being passed



Please note how WIDTH and HEIGHT are not being passed to the plugin. From 
either the EMBED or the OBJECT tags... Passing the values from EMBED tag I 
believe are correct.


As a comparison this is what args mozilla gives me on the same page. Looks to 
me like these are from the EMBED tag.

Argument Name: width                                                                                  
Argument Value: 480                                                                                   
Argument Name: target                                                                                 
Argument Value: MYSELF                                                                                
Argument Name: src                                                                                    
Argument Value: 
http://a944.g.akamai.net/7/944/51/a814f5c0bdf5ef/www.apple.com/switch/ads/images/janieporche_ctp2.mov                                                                                                                                                                                             
Argument Name: href                                                                                   
Argument Value: 
http://a772.g.akamai.net/5/772/51/8dcb48a6dd7f7d/1a1a1aaa2198c627970773d80669d84574a8d80d3cb12453c02589f25382e353c32f94c336ad168aed5584eb5dcc41b1e3/JaniePorche-sref.mov                                                                                                                          
Argument Name: height                                                                                 
Argument Value: 376                                                                                   
Argument Name: pluginspage                                                                            
Argument Value: http://www.apple.com/quicktime/download/index.html                                    
Argument Name: controller                                                                             
Argument Value: false


So the nsplug portion of Konqueror is passing different values to the plugin 
than mozilla.

Kevin


On Wednesday 05 March 2003 02:45 pm, George Staikos wrote:
> CVS commit by staikos:
>
> Another size related hack.  This seems to make everyone happy.  Now mplayer
> plugin loads and operates as well as Crossover.  The new approach is to set
> the canvas to 1600x1200 if the size is unspecified (this works around
> Crossover problems with resizing to larger than the original canvas
> setting), but telling the plugin that it is 0x0, which is what some plugins
> expect.  It seems that all plugins can scale upwards, but many have
> troubles scaling down.
>
> That being said, the trailers on apple.com still don't work, but it appears
> to be mplayer specific now.  I think mplayer is actually crashing, but even
> if not, it's giving a lot of errors in the console.  The trailer shows up
> momentarily as a very small video in the top-left of the view, then just
> disappears silently.  Playing local files works fine (.wmv, .mpg, .mov,
> etc).
>
> Hopefully this patch finally makes everyone happy.  I have successfully
> tested: flash6
> realplugin
> mplayerplugin
> crossover
> djvu
> tclplug
> acrobat plugin
> swfdec mozilla plugin
>
> Remains to be tested: plugger (if it's even worth it...)
>
> And they all seem to work well now.  I can't find many problems other than
> the missing jre which is probably not going to be solved any time soon (so
> no real live connect support).  I would like to backport the changes from
> the past 5-6 days to the 3.1-branch.  I'll do so tonight if I don't hear
> any negative feedback.
>
> CCMAIL: j.spaandonk at chello.nl, kdekorte at yahoo.com, fgouget at codeweavers.com,
> kfm-devel at mail.kde.org
>
>
>   M +8 -2      nsplugin.cpp   1.94
>
>
> --- kdebase/nsplugins/viewer/nsplugin.cpp  #1.93:1.94
> @@ -521,4 +521,10 @@ NSPluginInstance::NSPluginInstance(NPP p
>     kdDebug(1431) << "ndata = " << _npp->ndata << endl;
>
> +   if (width == 0)
> +      width = 1600;
> +
> +   if (height == 0)
> +      height = 1200;
> +
>     // create drawing area
>     Arg args[5];
> @@ -1203,6 +1209,6 @@ DCOPRef NSPluginClass::newInstance( QStr
>     char **_argv = new char*[argc];
>     QString src = url;
> -   int width = 1600;
> -   int height = 1200;
> +   int width = 0;
> +   int height = 0;
>     QString baseURL = url;




More information about the kfm-devel mailing list