Changeset 51
- Timestamp:
- 05/19/08 10:36:51
(3 months ago)
- Author:
- sip
- Message:
Added FLV methods (preliminar).
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r31 |
r51 |
|
| 109 | 109 | //La borramos |
|---|
| 110 | 110 | int res = conf->DeleteParticipant(partId); |
|---|
| | 111 | |
|---|
| | 112 | //Liberamos la referencia |
|---|
| | 113 | mcu->ReleaseConferenceRef(confId); |
|---|
| | 114 | |
|---|
| | 115 | //Salimos |
|---|
| | 116 | if(!res) |
|---|
| | 117 | return xmlerror(env,"No se ha podido aƱadir el participante a la conferencia\n"); |
|---|
| | 118 | |
|---|
| | 119 | //Devolvemos el resultado |
|---|
| | 120 | return xmlok(env); |
|---|
| | 121 | } |
|---|
| | 122 | |
|---|
| | 123 | xmlrpc_value* CreateFLVWatcher(xmlrpc_env *env, xmlrpc_value *param_array, void *user_data) |
|---|
| | 124 | { |
|---|
| | 125 | MCU *mcu = (MCU *)user_data; |
|---|
| | 126 | MultiConf *conf = NULL; |
|---|
| | 127 | |
|---|
| | 128 | //Parseamos |
|---|
| | 129 | int confId; |
|---|
| | 130 | xmlrpc_parse_value(env, param_array, "(i)", &confId); |
|---|
| | 131 | |
|---|
| | 132 | //Comprobamos si ha habido error |
|---|
| | 133 | if(env->fault_occurred) |
|---|
| | 134 | return 0; |
|---|
| | 135 | |
|---|
| | 136 | //Obtenemos la referencia |
|---|
| | 137 | if(!mcu->GetConferenceRef(confId,&conf)) |
|---|
| | 138 | return xmlerror(env,"La conferencia no existe\n"); |
|---|
| | 139 | |
|---|
| | 140 | //La borramos |
|---|
| | 141 | //int port = conf->CreateFLVWatcher(); |
|---|
| | 142 | int port = 1000; |
|---|
| | 143 | |
|---|
| | 144 | //Liberamos la referencia |
|---|
| | 145 | mcu->ReleaseConferenceRef(confId); |
|---|
| | 146 | |
|---|
| | 147 | //Salimos |
|---|
| | 148 | if(!port) |
|---|
| | 149 | return xmlerror(env,"No se ha podido crear el watcher FLV\n"); |
|---|
| | 150 | |
|---|
| | 151 | //Devolvemos el resultado |
|---|
| | 152 | return xmlok(env,xmlrpc_build_value(env,"(i)",port)); |
|---|
| | 153 | } |
|---|
| | 154 | |
|---|
| | 155 | xmlrpc_value* DeleteFLVWatcher(xmlrpc_env *env, xmlrpc_value *param_array, void *user_data) |
|---|
| | 156 | { |
|---|
| | 157 | MCU *mcu = (MCU *)user_data; |
|---|
| | 158 | MultiConf *conf = NULL; |
|---|
| | 159 | |
|---|
| | 160 | //Parseamos |
|---|
| | 161 | int confId; |
|---|
| | 162 | xmlrpc_parse_value(env, param_array, "(i)", &confId); |
|---|
| | 163 | |
|---|
| | 164 | //Comprobamos si ha habido error |
|---|
| | 165 | if(env->fault_occurred) |
|---|
| | 166 | return 0; |
|---|
| | 167 | |
|---|
| | 168 | //Obtenemos la referencia |
|---|
| | 169 | if(!mcu->GetConferenceRef(confId,&conf)) |
|---|
| | 170 | return xmlerror(env,"La conferencia no existe\n"); |
|---|
| | 171 | |
|---|
| | 172 | //La borramos |
|---|
| | 173 | //int res = conf->DeleteFLVWatcher();S |
|---|
| | 174 | int res = 1; |
|---|
| 111 | 175 | |
|---|
| 112 | 176 | //Liberamos la referencia |
|---|
| … | … | |
| 639 | 703 | {"CreateParticipant",CreateParticipant}, |
|---|
| 640 | 704 | {"DeleteParticipant",DeleteParticipant}, |
|---|
| | 705 | {"CreateFLVWatcher",CreateFLVWatcher}, |
|---|
| | 706 | {"DeleteFLVWatcher",DeleteFLVWatcher}, |
|---|
| 641 | 707 | {"SetVideoCodec",SetVideoCodec}, |
|---|
| 642 | 708 | {"StartSendingVideo",StartSendingVideo}, |
|---|
Download in other formats:
|
|