Changeset 32

Show
Ignore:
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
  • XmlRpcMcuClient/src/org/murillo/mcu/XmlRpcMcuClient.java

    r28 r32  
    5151    public static final Integer MOSAIC1p7 = 5; 
    5252     
     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     
    5375    private XmlRpcClient client; 
    5476    private XmlRpcClientConfigImpl config; 
     
    97119    } 
    98120     
     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     
    99131    //Video 
    100132    public boolean SetVideoCodec(Integer confId,Integer partId,Integer codec,Integer mode,Integer fps,Integer bitrate,Integer quality, Integer fillLevel) throws XmlRpcException 
     
    273305    } 
    274306 
    275  
    276307     
    277308} 
Copyright 2006 - Sergio García Murillo
Powered by Trac - Edgewall Software