Nov 25, 2009 9:06 AM
12 persons video conference windows layout
-
Like (0)
You have to install JDK and OpenLaszlo Server 3.4. Then extract the source file videoConf.lzx from red5.war and mod the <view x="0" y="0" width="320"> sections with a text editor just before the code below for each window:
<view id="flvView0" bgcolor="0xC0C0C0">
<method event="oninit">
this.setSource('myVideo4.swf');
</method>
<method event="onclick">
<![CDATA[
if (stream == ns0Name) {
After you mod it, save the file then use OpenLaszlo to compile it.
I found that if I drew what I wanted it to look like, then came up with the cooridinates for each box, it was easier to enter it all after. Here is an example of a 6 user chat, the first user is 640x480, with the other users at 320x240 arranged around it. I have included all the files to make this work including the source...
Here is the cooridinates I used to make this happen (the blank boxes are part of the 640x480 window):
| Header 1 | Header 2 | Header 3 |
|---|---|---|
| ns0Name <view x="0" y="0" width="640"> | ns1Name <view x="641" y="0" width="320"> | |
| ns2Name <view x="0" y="241" width="320"> | ||
| ns3Name <view x="0" y="481" width="320"> | ns4Name <view x="321" y="481" width="320"> | ns5Name <view x="641" y="481" width="320"> |