Changeset 32
- Timestamp:
- 02/10/08 22:17:21
(6 months ago)
- Author:
- sip
- Message:
Client side mosaic positioning
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r28 |
r32 |
|
| 51 | 51 | public static final Integer MOSAIC1p7 = 5; |
|---|
| 52 | 52 | |
|---|
| | 53 | public static final int getMosaicNumSlots(Integer type) |
|---|
| | 54 | { |
|---|
| | 55 | switch(type) |
|---|
| | 56 | { |
|---|
| | 57 | case 0: |
|---|
| | 58 | return 1; |
|---|
| | 59 | case 1: |
|---|
| | 60 | return 4; |
|---|
| | 61 | case 2: |
|---|
| | 62 | return 9; |
|---|
| | 63 | case 3: |
|---|
| | 64 | return 7; |
|---|
| | 65 | case 4: |
|---|
| | 66 | return 6; |
|---|
| | 67 | case 5: |
|---|
| | 68 | return 8; |
|---|
| | 69 | } |
|---|
| | 70 | |
|---|
| | 71 | return -1; |
|---|
| | 72 | } |
|---|
| | 73 | |
|---|
| | 74 | |
|---|
| 53 | 75 | private XmlRpcClient client; |
|---|
| 54 | 76 | private XmlRpcClientConfigImpl config; |
|---|
| … | … | |
| 97 | 119 | } |
|---|
| 98 | 120 | |
|---|
| | 121 | public boolean SetMosaicSlot(Integer confId,Integer num,Integer id) throws XmlRpcException |
|---|
| | 122 | { |
|---|
| | 123 | //Create request |
|---|
| | 124 | Object[] request = new Object[]{confId,num,id}; |
|---|
| | 125 | //Execute |
|---|
| | 126 | HashMap response = (HashMap) client.execute("SetMosaicSlot", request); |
|---|
| | 127 | //Return |
|---|
| | 128 | return true; |
|---|
| | 129 | } |
|---|
| | 130 | |
|---|
| 99 | 131 | //Video |
|---|
| 100 | 132 | public boolean SetVideoCodec(Integer confId,Integer partId,Integer codec,Integer mode,Integer fps,Integer bitrate,Integer quality, Integer fillLevel) throws XmlRpcException |
|---|
| … | … | |
| 273 | 305 | } |
|---|
| 274 | 306 | |
|---|
| 275 | | |
|---|
| 276 | 307 | |
|---|
| 277 | 308 | } |
|---|
Download in other formats:
|
|