From: Asaf <tvasaf@ne...>  20061009 12:53:10

On =D7=90', 20061008 at 08:25 0600, Kevin DeKorte wrote: > BEGIN PGP SIGNED MESSAGE > Hash: SHA1 >=20 > Asaf wrote: > > On =D7=90', 20061008 at 08:11 0600, Kevin DeKorte wrote: > >> BEGIN PGP SIGNED MESSAGE > >> Hash: SHA1 > >> > >> Asaf wrote: > >>> at first creation it works, But changing > >>> size dynamicly through javaScript does not. > >>> Setting width/height doesnt seems to have effect > >>> nore does left/top > >>> > >>> Thanks > >> Please send a test case. Those options should be working... The = left and > >> top are not actually controlled by the plugin, so perhaps you do= n't have > >> the correct object? Also, have you opened the javascript console= and > >> looked for any errors there. > >> > >> Kevin > >>   > >=20 > > Sorry > >=20 > > I did another test and the box is resizing =20 > > But mplayers picture is the same size,=20 > > So when the box becomes smaller, the rest > > of the image is Clipped , instead of resized. > > as if mplayer is unaware to the change. > >=20 > > here is the code  no javascript Errors : > >=20 > > =09dump("\nTVNGO  X()  Enter "); > > =09=09=09try{ > > =09=09=09=09var elem =3D document.getElementById("media"); > > =09=09=09=09elem.width =3D 300; > > =09=09=09=09elem.height =3D 200; > > =09=09=09=09dump("\nTVNGO  X()  Leave ");=09=09 > > =09=09=09} catch (ex) { > > =09=09=09=09dump("\nTVNGO  Z()  ERROR !! "+ex); > > =09=09=09} > >=20 > >=20 > > operating on the following EMBED > > <html:embed id=3D"media" class=3D"media_0" type=3D"application/= xmplayer2" > > width=3D"540" height=3D"420" left=3D"100" top=3D"100" />=09=09= =09=09=09=09=09=09 > > =09=09 > >=20 > > I start playing, using Open() and Play() some http://......... > > While its playing ,i try the resize. > > the picture is Clipped. > >=20 > > Thanks=20 >=20 > Ah ok... I think I know where the problem is... I'll have to look = into > it. I'm guessing that in the SetWindow method the drawing area is n= ot > getting resized and hopefully doing that will trigger a resize in m= player. >=20 > Kevin >=20 Another problem , semiliar issue a little explanation first:=20 I'm running into nonstandart problems becouse of nonstandart usage i think, my usage is completly dynamic, I start with blank XUL window,=20 all elements are created & maniplated dynamicly in javascript,=20 and somtimes things dont work the same way as in the static approach, I see this also with the Flash plugin. If you dont have time for such issues,=20 maybe you could point us how to fix such problems. Now I caught another quirk behaviour, I set style attribut to the <Embed> : v_element.setAttribute("style","position :absolute;left:0px;top:0px;z= index:0;"); now , when I call Play(), The plugin opens a new window instead of playing in the same window , as it was doing without the "setAttribut= e". Why is that ? Thanks=20 Asaf =20 