Changeset 44320
- Timestamp:
- 11/11/19 02:10:27 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpdfunc.h
r43598 r44320 1124 1124 { 1125 1125 char* buf = NULL, *param1 = NULL, *tmpbuf = NULL; 1126 printf("#############################################\n"); 1127 1128 printf("[webvideo] param: %s\n",param); 1129 printf("[webvideo] param: %d\n",fmt); 1126 1130 1127 1131 if(param == NULL) return NULL; … … 1129 1133 if(ostrcmp("status", param) == 0) // status is only available for queryraw 1130 1134 { 1135 printf("[webvideo] 111111111\n"); 1136 1131 1137 char buf[30]; 1132 1138 int active = (status.webplayfile != NULL ? 1 : 0); … … 1148 1154 return ostrcat(buf, NULL, 0, 0); 1149 1155 } 1156 printf("[webvideo] 222222222\n"); 1150 1157 1151 1158 //create param1 … … 1156 1163 if(param1 == NULL) return NULL; 1157 1164 1165 printf("[webvideo] 3333333333\n"); 1166 1158 1167 htmldecode(param1, param1); 1159 1168 if(param1 != NULL) 1160 1169 { 1170 printf("[webvideo] 4444444444\n"); 1171 1161 1172 if(status.play == 0 && status.webplayfile == NULL) 1162 1173 { 1174 printf("[webvideo] 5555555555\n"); 1175 1163 1176 if(ostrstr(param1, "url=") == param1) 1177 { 1178 printf("[webvideo] 666666666666\n"); 1179 1164 1180 status.webplayfile = ostrcat(param1 + 4, NULL, 0, 0); 1181 } 1165 1182 else if(ostrstr(param1, "hosterurl=") == param1) 1166 1183 { 1184 printf("[webvideo] 7777777777777\n"); 1185 1167 1186 status.webplayfile = ostrcat(param1 + 10, NULL, 0, 0); 1168 1187 … … 1184 1203 } 1185 1204 else 1205 { 1206 printf("[webvideo] 88888888\n"); 1207 1186 1208 status.webplayfile = ostrcat(param1, NULL, 0, 0); 1187 } 1209 } 1210 } 1211 printf("[webvideo] 99999999999999\n"); 1212 1188 1213 } 1189 1214 tmpbuf = ostrcat("not in play mode", NULL, 0, 0); 1215 1216 printf("[webvideo] aaaaaaaaaaaaa\n"); 1217 printf("[webvideo] aaaaaaaaaaaaa status.play: %d\n",status.play); 1218 printf("[webvideo] aaaaaaaaaaaaa status.timeshift: %d\n",status.timeshift); 1219 printf("[webvideo] aaaaaaaaaaaaa status.webplayfile: %s\n",status.webplayfile); 1220 1190 1221 1191 1222 int count = 0; 1192 1223 if(status.timeshift == 0 && status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0)) 1193 1224 { 1225 printf("[webvideo] bbbbbbbbbbbb\n"); 1226 1194 1227 int count = 0; 1195 1228 … … 1205 1238 } 1206 1239 else 1240 { 1241 printf("[webvideo] ccccccccccccccc\n"); 1242 1207 1243 count = 31; 1244 } 1245 printf("[webvideo] dddddddddddddd\n"); 1208 1246 1209 1247 if(count >= 30 && status.play == 0) 1210 1248 { 1249 printf("[webvideo] eeeeeeeeeee\n"); 1250 1211 1251 free(status.webplayfile); status.webplayfile = NULL; 1212 1252 free(tmpbuf); tmpbuf = NULL; 1213 1253 tmpbuf = ostrcat("can not start playback", NULL, 0, 0); 1214 1254 } 1255 printf("[webvideo] fffffffffffffff\n"); 1215 1256 1216 1257 if(status.timeshift == 0 && status.play == 1) 1217 1258 { 1259 printf("[webvideo] ggggggggggggg\n"); 1260 1218 1261 if(ostrcmp("stop", param) == 0 || ostrcmp("stop=", param) == 0) 1219 1262 writerc(getrcconfigint("rcstop", NULL)); … … 1264 1307 } 1265 1308 } 1309 printf("[webvideo] hhhhhhhhhhhhh\n"); 1266 1310 1267 1311 if(fmt == 0) 1268 1312 { 1313 printf("[webvideo] iiiiiiiiiiiiiiiii\n"); 1314 1269 1315 buf = webcreatehead(buf, NULL, 1); 1270 1316 buf = ostrcat(buf, "<tr><td align=center valign=top><font class=biglabel><br><br>Video ", 1, 0); … … 1274 1320 } 1275 1321 else 1322 { 1323 printf("[webvideo] jjjjjjjjjjjjjjjjjj\n"); 1324 1276 1325 buf = ostrcat(buf, tmpbuf, 1, 1); 1326 } 1327 printf("[webvideo] kkkkkkkkkkkk \n"); 1328 printf("#############################################\n"); 1277 1329 1278 1330 return buf;
Note: See TracChangeset
for help on using the changeset viewer.