[vlc] Re: embed parameters
Peter Maersk-Moller
peter at maersk-moller.net
Wed Jun 15 20:36:58 CEST 2005
Hi Vinup
vinu p wrote:
> Hi All,
> Has anyone tried changing the height and width of the
> plugin image while playing at the client end.
> I want something like to see the video in half screen
> mode on clicking a button.
Yep. Try do something like
<table id="Video" height="576px" width="768px" cellspacing="0" cellpadding="0" style="visibility: visible;">
<tr>
<td width="100%" height="100%">
<embed id="vlc_player" type="application/x-vlc-plugin"
name="vlc_player"
autoplay="yes"
loop="no"
width="100%"
height="100%"
target="rtsp://myserver/myclip">
</embed>
</td>
</tr>
</table>
and then later in a javascript something like
var x = document.getElementById('Video');
x.setAttribute('height', 480);
x.setAttribute('width', 640);
Adjust for you own settings and wrap a function to call with parms.
Works in Mozilla/Firefox - most of the time.
Kind regards
--PMM
+----------------------------------------------------------+
| Kabel-TV over Internettet -- http://www.streamtv.dk/ |
+----------------------------------------------------------+
--
This is the vlc mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://www.videolan.org/support/lists.html
More information about the vlc
mailing list