Changeset 21
- Timestamp:
- 09/08/07 19:20:59
(1 year ago)
- Author:
- sip
- Message:
Mosaic configuration added
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r16 |
r21 |
|
| 21 | 21 | |
|---|
| 22 | 22 | import java.util.HashMap; |
|---|
| | 23 | import org.murillo.mcu.XmlRpcMcuClient; |
|---|
| 23 | 24 | |
|---|
| 24 | 25 | /** |
|---|
| … | … | |
| 32 | 33 | private MediaMixer mixer; |
|---|
| 33 | 34 | private HashMap<Integer,Participant> participants; |
|---|
| 34 | | |
|---|
| | 35 | private Integer compType; |
|---|
| | 36 | private Integer size; |
|---|
| | 37 | |
|---|
| 35 | 38 | /** Creates a new instance of Conference */ |
|---|
| 36 | 39 | protected Conference(Integer id,String name,MediaMixer mixer) { |
|---|
| … | … | |
| 39 | 42 | this.mixer = mixer; |
|---|
| 40 | 43 | this.name = name; |
|---|
| | 44 | //Default composition and size |
|---|
| | 45 | this.compType = XmlRpcMcuClient.MOSAIC2x2; |
|---|
| | 46 | this.size = XmlRpcMcuClient.CIF; |
|---|
| 41 | 47 | //Create the participant map |
|---|
| 42 | 48 | 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; |
|---|
| 43 | 65 | } |
|---|
| 44 | 66 | |
|---|
| r18 |
r21 |
|
| 2 | 2 | <head> |
|---|
| 3 | 3 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
|---|
| 4 | | <title>JSP Page</title> |
|---|
| | 4 | <title>MCU Web Interface</title> |
|---|
| 5 | 5 | <link type="text/css" rel="stylesheet" href="main.css"> |
|---|
| 6 | 6 | </head> |
|---|
| r18 |
r21 |
|
| 8 | 8 | //Get conference |
|---|
| 9 | 9 | org.murillo.mcuWeb.Conference conf = confMngr.getConference(uid); |
|---|
| | 10 | //Get participant iterator |
|---|
| | 11 | Iterator<org.murillo.mcuWeb.Participant> itPart = null; |
|---|
| | 12 | |
|---|
| 10 | 13 | %> |
|---|
| 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%;"> |
|---|
| 12 | 57 | <legend><img src="icons/image.png"> Conference</legend> |
|---|
| 13 | | <table class="form"> |
|---|
| | 58 | <table class="form" method="POST" action="controller/setCompositionType"> |
|---|
| | 59 | <form> |
|---|
| 14 | 60 | <tr> |
|---|
| 15 | 61 | <td>Name:</td> |
|---|
| … | … | |
| 20 | 66 | <td><%=conf.getMixer().getName()%></td> |
|---|
| 21 | 67 | </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> |
|---|
| 22 | 91 | </table> |
|---|
| 23 | 92 | </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;"> |
|---|
| 25 | 111 | <legend><img src="icons/group.png"> Participant List</legend> |
|---|
| 26 | 112 | <table class="list"> |
|---|
| … | … | |
| 32 | 118 | </tr> |
|---|
| 33 | 119 | <% |
|---|
| 34 | | //Get mixer iterator |
|---|
| 35 | | Iterator<org.murillo.mcuWeb.Participant> itPart = conf.getParticipants().values().iterator(); |
|---|
| | 120 | //Reset iterator |
|---|
| | 121 | itPart = conf.getParticipants().values().iterator(); |
|---|
| 36 | 122 | //Loop |
|---|
| 37 | 123 | while(itPart.hasNext()) { |
|---|
| 38 | | // Get mixer |
|---|
| | 124 | // Get participant |
|---|
| 39 | 125 | org.murillo.mcuWeb.Participant part = itPart.next(); |
|---|
| 40 | 126 | //Print values |
|---|
| … | … | |
| 50 | 136 | </table> |
|---|
| 51 | 137 | </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> |
|---|
| r18 |
r21 |
|
| 27 | 27 | <td>Composition:</td> |
|---|
| 28 | 28 | <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> |
|---|
| 32 | 40 | </td> |
|---|
| 33 | 41 | </tr> |
|---|
| r18 |
r21 |
|
| 4 | 4 | padding:0; |
|---|
| 5 | 5 | background:#fff; |
|---|
| 6 | | font: 76% "Lucida Sans Unicode", verdana, helvetica, sans-serif; |
|---|
| | 6 | font: 86% "Lucida Sans Unicode", verdana, helvetica, sans-serif; |
|---|
| 7 | 7 | color: #418FA5; |
|---|
| 8 | 8 | line-height: 130%; |
|---|
| … | … | |
| 43 | 43 | line-height: 100%; |
|---|
| 44 | 44 | } |
|---|
| 45 | | input, textarea, select{ |
|---|
| | 45 | select{ |
|---|
| | 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 | } |
|---|
| | 54 | input, textarea { |
|---|
| 46 | 55 | background: #fff; |
|---|
| 47 | 56 | border: 1px solid #93ddf1; |
|---|
| 48 | 57 | border-bottom: 2px solid #93ddf1; |
|---|
| 49 | 58 | background-repeat: none; |
|---|
| 50 | | } |
|---|
| | 59 | color: #46A4BE; |
|---|
| | 60 | font-size: 10px; |
|---|
| | 61 | } |
|---|
| | 62 | |
|---|
| 51 | 63 | input:hover, textarea:hover, select:hover { |
|---|
| 52 | 64 | background: #F0FDE2; |
|---|
| … | … | |
| 107 | 119 | |
|---|
| 108 | 120 | fieldset { |
|---|
| 109 | | width:800px; |
|---|
| | 121 | |
|---|
| 110 | 122 | border: 1px solid #83cde1; |
|---|
| 111 | 123 | margin-bottom: 10px; |
|---|
| … | … | |
| 124 | 136 | .form { |
|---|
| 125 | 137 | font-size: 1em; |
|---|
| | 138 | } |
|---|
| | 139 | |
|---|
| | 140 | .form tr td:first-child { |
|---|
| | 141 | padding-left: 5px; |
|---|
| | 142 | |
|---|
| | 143 | padding-right: 10px; |
|---|
| 126 | 144 | } |
|---|
| 127 | 145 | |
|---|
| … | … | |
| 204 | 222 | background: transparent; |
|---|
| 205 | 223 | padding: 10px 0 20px 20px; |
|---|
| 206 | | width: 100%; |
|---|
| | 224 | width: 1024px; |
|---|
| 207 | 225 | height: 600px; |
|---|
| 208 | 226 | font-size: 0.7em; |
|---|
| 209 | 227 | } |
|---|
| 210 | 228 | |
|---|
| 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 | | --> |
|---|
Download in other formats:
|
|