Problem with resizing a VLC moz plugin

Old forum that is now archived. Please use one of the other forums.
manjany

Problem with resizing a VLC moz plugin

Postby manjany » 17 Feb 2005 19:17

Hi all,
I have some trouble when i resize my browser with this html example code.
What can i do to resolve this problem ?
I'm wondering if the size of the vlc drawing area was fixed at initialisation.

Thanks.

Code: Select all

<html><body> <div style="position:absolute; left:0px; top:0px;z-index:1;"> <INPUT TYPE="BUTTON" VALUE="Play" ONCLICK="document.video.play()"> <INPUT TYPE="BUTTON" VALUE="Stop" ONCLICK="document.video.stop()"> </div> <div id="videolayer" style="position:absolute; left:0px; top:0px;height:100%;width:100%"> <embed type="application/x-vlc-plugin" name="video" autoplay="no" loop="no" target="/home/manjany/movie.avi" style="position:relative; left: 25%; top:25%; height:50%; width:50%"> </embed> </div> </body></html>

manjany

Postby manjany » 17 Feb 2005 19:21

I forgot to say that i'm under Mandrake 10 and i use Mozilla 1.7.3
Thanks

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 17 Feb 2005 20:07

Your html/css code works :) (in firefox 1.0 at least)

manjany

Postby manjany » 18 Feb 2005 10:28

I tested the same code with firefox 1.0, I have the same result.
Is this an embed object resizing problem with mozilla & firefox under linux?
Under windows, it's works perfectly.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 18 Feb 2005 13:07

i tested under debian linux and i have no problem ... You could always try the height="" and width="" attributes to the embed tag.

manjany

Postby manjany » 18 Feb 2005 15:00

I want dynamically change the size of the vlc plugin.
I'm sorry to insist with that, but can you try again with this code and tell me the result.
Start with "Play" and Increase the size with "Big". And see if the video fits the new size or stays in the same size.
It's the same problem when i replace the VLC embed object by a FLASH embed object.
That's the reason why i supose that it's a mozilla and firefox problem with EMBED, maybe only under Mandake :twisted:
I dont have debian yet, i will install it this week-end.

Thanks so much.

Code: Select all

<body bgcolor="#D1D7DC"> <script LANGUAGE="JavaScript"> function Small(){video.style.height="25%"; video.style.width="25%";} function Normal(){video.style.height="50%"; video.style.width="50%";} function Big(){video.style.height="75%"; video.style.width="75%";} </script> <div style="position:absolute; left:0px; top:0px;z-index:1;"> <INPUT TYPE="BUTTON" VALUE="Play" ONCLICK="document.video.play()"> <INPUT TYPE="BUTTON" VALUE="Stop" ONCLICK="document.video.stop()"> <INPUT TYPE="BUTTON" VALUE="Small" ONCLICK="Small()"> <INPUT TYPE="BUTTON" VALUE="Normal" ONCLICK="Normal()"> <INPUT TYPE="BUTTON" VALUE="Big" ONCLICK="Big()"> </div> <div id="videolayer" style="position:absolute; left:0px; top:0px; height:100%;width:100%;"> <embed type="application/x-vlc-plugin" name="video" autoplay="no" loop="no" target="/home/dtesfa/video/ShowReel_320.avi" style="position:relative; left: 50px; top:50px; height:50%; width:50%" /> </div> </body>

manjany

Postby manjany » 22 Feb 2005 10:58

I tested my example under Debian sid with mozilla 1.7.5, and i have same problems when i dynamically resize my vlc plugin.
Does anyone know what exactly is the problem ?

Thanks a lot.

Guest

Postby Guest » 25 Feb 2005 02:09

FYI: In Fedora Core 3 and Firefox 1.0 the above code works perfectly for me, and resizes on the fly.


Return to “VideoLAN”

Who is online

Users browsing this forum: No registered users and 35 guests