Changeset 44320


Ignore:
Timestamp:
11/11/19 02:10:27 (4 years ago)
Author:
obi
Message:

addhttpfunc debug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/httpdfunc.h

    r43598 r44320  
    11241124{
    11251125        char* buf = NULL, *param1 = NULL, *tmpbuf = NULL;
     1126printf("#############################################\n");
     1127
     1128printf("[webvideo] param: %s\n",param);
     1129printf("[webvideo] param: %d\n",fmt);
    11261130
    11271131        if(param == NULL) return NULL;
     
    11291133        if(ostrcmp("status", param) == 0) // status is only available for queryraw
    11301134        {
     1135printf("[webvideo] 111111111\n");
     1136
    11311137                char buf[30];
    11321138                int active = (status.webplayfile != NULL ? 1 : 0);
     
    11481154                return ostrcat(buf, NULL, 0, 0);
    11491155        }
     1156printf("[webvideo] 222222222\n");
    11501157
    11511158        //create param1
     
    11561163        if(param1 == NULL) return NULL;
    11571164
     1165printf("[webvideo] 3333333333\n");
     1166
    11581167        htmldecode(param1, param1);
    11591168        if(param1 != NULL)
    11601169        {
     1170printf("[webvideo] 4444444444\n");
     1171
    11611172                if(status.play == 0 && status.webplayfile == NULL)
    11621173                {
     1174printf("[webvideo] 5555555555\n");
     1175
    11631176                        if(ostrstr(param1, "url=") == param1)
     1177{
     1178printf("[webvideo] 666666666666\n");
     1179
    11641180                                status.webplayfile = ostrcat(param1 + 4, NULL, 0, 0);
     1181}
    11651182                        else if(ostrstr(param1, "hosterurl=") == param1)
    11661183                        {
     1184printf("[webvideo] 7777777777777\n");
     1185
    11671186                                status.webplayfile = ostrcat(param1 + 10, NULL, 0, 0);
    11681187
     
    11841203                        }
    11851204                        else
     1205{
     1206printf("[webvideo] 88888888\n");
     1207
    11861208                                status.webplayfile = ostrcat(param1, NULL, 0, 0);
    1187                 }
     1209}
     1210                }
     1211printf("[webvideo] 99999999999999\n");
     1212
    11881213        }
    11891214        tmpbuf = ostrcat("not in play mode", NULL, 0, 0);
     1215
     1216printf("[webvideo] aaaaaaaaaaaaa\n");
     1217printf("[webvideo] aaaaaaaaaaaaa status.play: %d\n",status.play);
     1218printf("[webvideo] aaaaaaaaaaaaa status.timeshift: %d\n",status.timeshift);
     1219printf("[webvideo] aaaaaaaaaaaaa status.webplayfile: %s\n",status.webplayfile);
     1220
    11901221
    11911222        int count = 0;
    11921223        if(status.timeshift == 0 && status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0))
    11931224        {
     1225printf("[webvideo] bbbbbbbbbbbb\n");
     1226
    11941227                int count = 0;
    11951228
     
    12051238        }
    12061239        else
     1240{
     1241printf("[webvideo] ccccccccccccccc\n");
     1242
    12071243                count = 31;
     1244}
     1245printf("[webvideo] dddddddddddddd\n");
    12081246
    12091247        if(count >= 30 && status.play == 0)
    12101248        {
     1249printf("[webvideo] eeeeeeeeeee\n");
     1250
    12111251                free(status.webplayfile); status.webplayfile = NULL;
    12121252                free(tmpbuf); tmpbuf = NULL;
    12131253                tmpbuf = ostrcat("can not start playback", NULL, 0, 0);
    12141254        }
     1255printf("[webvideo] fffffffffffffff\n");
    12151256
    12161257        if(status.timeshift == 0 && status.play == 1)
    12171258        {
     1259printf("[webvideo] ggggggggggggg\n");
     1260
    12181261                if(ostrcmp("stop", param) == 0 || ostrcmp("stop=", param) == 0)
    12191262                        writerc(getrcconfigint("rcstop", NULL));
     
    12641307                }
    12651308        }
     1309printf("[webvideo] hhhhhhhhhhhhh\n");
    12661310
    12671311        if(fmt == 0)
    12681312        {
     1313printf("[webvideo] iiiiiiiiiiiiiiiii\n");
     1314
    12691315                buf = webcreatehead(buf, NULL, 1);
    12701316                buf = ostrcat(buf, "<tr><td align=center valign=top><font class=biglabel><br><br>Video ", 1, 0);
     
    12741320        }
    12751321        else
     1322{
     1323printf("[webvideo] jjjjjjjjjjjjjjjjjj\n");
     1324
    12761325                buf = ostrcat(buf, tmpbuf, 1, 1);
     1326}
     1327printf("[webvideo] kkkkkkkkkkkk \n");
     1328printf("#############################################\n");
    12771329
    12781330        return buf;
Note: See TracChangeset for help on using the changeset viewer.