Changeset 21

Show
Ignore:
Timestamp:
09/08/07 19:20:59 (1 year ago)
Author:
sip
Message:

Mosaic configuration added

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mcuWeb/src/java/org/murillo/mcuWeb/Conference.java

    r16 r21  
    2121 
    2222import java.util.HashMap; 
     23import org.murillo.mcu.XmlRpcMcuClient; 
    2324 
    2425/** 
     
    3233    private MediaMixer mixer; 
    3334    private HashMap<Integer,Participant> participants; 
    34      
     35    private Integer compType; 
     36    private Integer size; 
     37 
    3538    /** Creates a new instance of Conference */ 
    3639    protected Conference(Integer id,String name,MediaMixer mixer) { 
     
    3942        this.mixer = mixer; 
    4043        this.name = name; 
     44        //Default composition and size 
     45        this.compType = XmlRpcMcuClient.MOSAIC2x2; 
     46        this.size = XmlRpcMcuClient.CIF; 
    4147        //Create the participant map 
    4248        participants = new HashMap<Integer,Participant>(); 
     49    } 
     50     
     51    public Integer getCompType() { 
     52        return compType; 
     53    } 
     54 
     55    public void setCompType(Integer compType) { 
     56        this.compType = compType; 
     57    } 
     58 
     59    public Integer getSize() { 
     60        return size; 
     61    } 
     62 
     63    public void setSize(Integer size) { 
     64        this.size = size; 
    4365    } 
    4466 
  • mcuWeb/web/WEB-INF/jspf/header.jspf

    r18 r21  
    22    <head> 
    33        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
    4         <title>JSP Page</title> 
     4        <title>MCU Web Interface</title> 
    55        <link type="text/css" rel="stylesheet" href="main.css"> 
    66    </head> 
  • mcuWeb/web/conference.jsp

    r18 r21  
    88    //Get conference 
    99    org.murillo.mcuWeb.Conference conf = confMngr.getConference(uid); 
     10    //Get participant iterator 
     11   Iterator<org.murillo.mcuWeb.Participant> itPart = null; 
     12    
    1013%> 
    11 <fieldset> 
     14 
     15<fieldset style="width:48%;float:right"> 
     16    <legend><img src="icons/application_view_tile.png"> Mosaic</legend> 
     17     <img src="icons/mosaic<%=conf.getCompType()%>.png" style="float:right"> 
     18     <table class="form" method="POST" action="controller/setCompositionType"> 
     19            <form> 
     20            <%  
     21                //Get iterator 
     22                itPart = conf.getParticipants().values().iterator(); 
     23                //Options strign 
     24                String options = new String(); 
     25                //Loop  
     26                while(itPart.hasNext()) { 
     27                    // Get mixer 
     28                    org.murillo.mcuWeb.Participant part = itPart.next(); 
     29                    //Apend 
     30                    options += "<option value=\"" + part.getId() +"\">" + part.getName(); 
     31                } 
     32                for(int i=0;i<9;i++) 
     33                { 
     34            %> 
     35            <tr> 
     36                <td>Position <%=i+1%>:</td> 
     37                <td><select name="pos"> 
     38                        <option value="0">Free 
     39                        <option value="-1">Lock 
     40                        <%=options%> 
     41                    </select> 
     42                </td>      
     43            </tr> 
     44            <% 
     45                } 
     46            %> 
     47            <tr> 
     48               <td colspan=2> 
     49               <input class="accept" type="submit" value="Change"> 
     50               </td> 
     51            </tr> 
     52            </form> 
     53        </table> 
     54</fieldset> 
     55 
     56<fieldset style="width:48%;"> 
    1257    <legend><img src="icons/image.png"> Conference</legend> 
    13         <table class="form"> 
     58        <table class="form" method="POST" action="controller/setCompositionType"> 
     59            <form> 
    1460            <tr> 
    1561                <td>Name:</td> 
     
    2066                <td><%=conf.getMixer().getName()%></td> 
    2167            </tr> 
     68            <tr> 
     69                <td>Composition:</td> 
     70                <td><select name="compType" value="<%=conf.getCompType()%>"> 
     71                    <option value="0">Mosaic 1x1 
     72                    <option value="1">Mosaic 2x2 
     73                    <option value="2">Mosaic 3x3 
     74                    </select> 
     75                </td> 
     76            </tr> 
     77            <tr> 
     78                <td>Size</td> 
     79                <td><select name="size" value="<%=conf.getSize()%>"> 
     80                    <option value="0">QCIF 
     81                    <option value="1">CIF 
     82                    </select> 
     83                </td> 
     84            </tr> 
     85            <tr> 
     86               <td colspan=2> 
     87               <input class="accept" type="submit" value="Change"> 
     88               </td> 
     89            </tr> 
     90            </form> 
    2291        </table> 
    2392</fieldset> 
    24 <fieldset> 
     93 
     94<fieldset style="width:48%;"> 
     95    <legend><img src="icons/user_add.png"> Add participant</legend> 
     96    <form method="POST" action="controller/joinParticipant"> 
     97    <input type="hidden" name="uid" value="<%=uid%>"> 
     98        <table class="form"> 
     99            <tr> 
     100                <td>Name:</td> 
     101                <td><input type="text" name="dest" value="sip:"></td> 
     102                <td><input class="add" type="submit" value="Invite"></td> 
     103            </tr> 
     104        </table> 
     105    </form> 
     106</fieldset> 
     107 
     108 
     109 
     110<fieldset style="clear:both;"> 
    25111    <legend><img src="icons/group.png"> Participant List</legend> 
    26112        <table class="list"> 
     
    32118        </tr> 
    33119        <% 
    34         //Get mixer iterator 
    35         Iterator<org.murillo.mcuWeb.Participant> itPart = conf.getParticipants().values().iterator(); 
     120        //Reset iterator 
     121        itPart = conf.getParticipants().values().iterator(); 
    36122        //Loop  
    37123        while(itPart.hasNext()) { 
    38             // Get mixer 
     124            // Get participant 
    39125           org.murillo.mcuWeb.Participant part = itPart.next(); 
    40126            //Print values 
     
    50136    </table> 
    51137</fieldset> 
    52  
    53 <fieldset> 
    54     <legend><img src="icons/user_add.png"> Add participant</legend> 
    55     <form method="POST" action="controller/joinParticipant"> 
    56     <input type="hidden" name="uid" value="<%=uid%>"> 
    57         <table class="form"> 
    58             <tr> 
    59                 <td>Name:</td> 
    60                 <td><input type="text" name="dest" value="sip:"></td> 
    61                 <td><input class="add" type="submit" value="Invite"></td> 
    62             </tr> 
    63         </table> 
    64     </form> 
    65 </fieldset> 
  • mcuWeb/web/createConference.jsp

    r18 r21  
    2727                <td>Composition:</td> 
    2828                <td><select name="compType"> 
    29                     <option value="0">1x1 
    30                     <option value="1" selected>2x2 
    31                     <option value="2">3x3 
     29                    <option value="0">Mosaic 1x1 
     30                    <option value="1" selected>Mosaic 2x2 
     31                    <option value="2">Mosaic 3x3 
     32                </td> 
     33            </tr> 
     34            <tr> 
     35                <td>Size:</td> 
     36                <td><select name="sizw"> 
     37                        <option value="0">QCIF 
     38                        <option value="1">CIF 
     39                    </select> 
    3240                </td> 
    3341            </tr> 
  • mcuWeb/web/main.css

    r18 r21  
    44        padding:0; 
    55        background:#fff; 
    6         font: 76% "Lucida Sans Unicode", verdana, helvetica, sans-serif; 
     6        font: 86% "Lucida Sans Unicode", verdana, helvetica, sans-serif; 
    77        color: #418FA5; 
    88        line-height: 130%; 
     
    4343        line-height: 100%; 
    4444} 
    45 input, textarea, select{ 
     45select{ 
     46    background: #fff; 
     47    border: 1px solid #93ddf1; 
     48    border-bottom: 2px solid #93ddf1; 
     49    background-repeat: none; 
     50    color: #46A4BE; 
     51    font-size: 10px; 
     52    min-width: 200px; 
     53}     
     54input, textarea {  
    4655        background: #fff; 
    4756        border: 1px solid #93ddf1; 
    4857        border-bottom: 2px solid #93ddf1; 
    4958        background-repeat: none; 
    50 
     59        color: #46A4BE; 
     60        font-size: 10px; 
     61
     62 
    5163input:hover, textarea:hover, select:hover { 
    5264        background: #F0FDE2; 
     
    107119 
    108120fieldset { 
    109     width:800px; 
     121    
    110122    border: 1px solid #83cde1; 
    111123    margin-bottom: 10px; 
     
    124136.form { 
    125137    font-size: 1em; 
     138} 
     139 
     140.form tr td:first-child { 
     141    padding-left: 5px; 
     142    
     143    padding-right: 10px; 
    126144} 
    127145 
     
    204222        background: transparent; 
    205223        padding: 10px 0 20px 20px; 
    206         width: 100%
     224        width: 1024px
    207225        height: 600px; 
    208226        font-size: 0.7em; 
    209227} 
    210228 
    211 <!-- 
    212 #content { 
    213         margin:0; 
    214         background: transparent; 
    215         padding: 10px 0 20px 20px; 
    216         width: 100%; 
    217         height: 600px; 
    218         font-size: 0.8em; 
    219 } 
    220  
    221 #content h2 { 
    222         font-size: 1.7em; 
    223         margin:0; 
    224         font-weight: normal; 
    225         padding: 10px 0 0 0; 
    226         color: #83CDE1; 
    227 } 
    228 #content h3 { 
    229         padding: 15px 0 0 0; 
    230         clear: both; 
    231         margin: 0; 
    232         color: #83CDE1; 
    233         font-size: 1.1em; 
    234 } 
    235 #content label { 
    236         font-size: 0.9em; 
    237         cursor: pointer; 
    238 } 
    239 #content p { 
    240         margin:0; 
    241         padding: 10px 0 5px 0; 
    242         line-height: 150%; 
    243 } 
    244  
    245 /* Main Content Area */ 
    246 .content { 
    247         float:left; 
    248         width:230px; 
    249         margin:0; 
    250         padding:5px 0 5px 0; 
    251         color: #fff; 
    252         background: url(../img/entrybg.gif) top left no-repeat; 
    253         border-right: 1px solid #47A4BE; 
    254         border-bottom: 1px solid #47A4BE; 
    255         font-size: 0.8em; 
    256 } 
    257 #content dd { 
    258         margin:0; 
    259         padding: 0 0 10px 0; 
    260 } 
    261 .content h2 { 
    262         padding: 4px 0 2px 0; 
    263         font-size: 1.0em; 
    264         margin: 0 0 0 10px; 
    265 } 
    266 #content .content-ind { 
    267         width:339px; 
    268         margin:0 0 10px 0; 
    269         padding:0 0 10px 0; 
    270         border-bottom: 1px dotted #BBE0EB; 
    271 } 
    272 #content .ad { 
    273         text-align: center; 
    274         border: 0; 
    275         padding: 20px 0 10px 0; 
    276 } 
    277 #content .content-ind h2 { 
    278         margin: 0 0 5px 0; 
    279         line-height: 130%; 
    280 } 
    281 #content .content-ind p { 
    282         padding: 5px 10px 0 0; 
    283         margin: 0 0 10px 0; 
    284 } 
    285 #content .content-ind .img img { 
    286         border: 3px solid #BBE0EB; 
    287 } 
    288 #content .content-ind .posted a { 
    289         color: #4896AC; 
    290 } 
    291 #content .content-ind .posted { 
    292         margin-top: 5px; 
    293         width: 300px; 
    294 } 
    295 #content .content-search { 
    296         width:319px; 
    297         margin:0; 
    298         padding:0 10px 10px 10px; 
    299         border-bottom: 1px dotted #BBE0EB; 
    300 } 
    301 #content .content-search img { 
    302         margin: 15px 0 0 0; 
    303         border: 3px solid #BBE0EB; 
    304 } 
    305 #content .content-search .posted a { 
    306         color: #4896AC; 
    307 } 
    308 #entries .posted, #content .posted { 
    309         margin:0 10px 0 10px; 
    310         padding: 2px 4px 3px 5px; 
    311         text-align:left; 
    312         width: 200px; 
    313         font-size: 0.9em; 
    314 } 
    315 #entries .img { 
    316         padding-left:10px; 
    317         padding-right:10px; 
    318 } 
    319 #entries .img img { 
    320         padding: 3px; 
    321         border: none; 
    322         background: #fff; 
    323 } 
    324 .content a { color: #fff; } 
    325 .posted a { color: #4896AC; } 
    326  
    327  
    328 --> 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software