Changeset 18034
- Timestamp:
- 09/24/12 19:26:51 (12 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/httpd.h
r18015 r18034 223 223 if(ostrcmp(query, "getvideo") == 0) 224 224 buf = webgetvideo(param, *connfd, fmt); 225 if(ostrcmp(query, "videoplay") == 0 )225 if(ostrcmp(query, "videoplay") == 0 || ostrcmp(query, "videoplay=") == 0) 226 226 buf = webvideo(param, fmt); 227 227 if(ostrcmp(query, "getshoot") == 0) -
titan/titan/httpdfunc.h
r17972 r18034 918 918 { 919 919 if(status.play == 0 && status.webplayfile == NULL) 920 status.webplayfile = ostrcat(tmpbuf, NULL, 0, 0); 920 { 921 char* tmpbuf1 = tmpbuf; 922 if(ostrstr(tmpbuf, "url=") == tmpbuf) tmpbuf1 += 4; 923 status.webplayfile = ostrcat(tmpbuf1, NULL, 0, 0); 924 } 921 925 free(tmpbuf); tmpbuf = NULL; 922 926 } … … 924 928 925 929 int count = 0; 926 if(status.play == 0 && ostrcmp("play", param) == 0)930 if(status.play == 0 && (ostrcmp("play", param) == 0 || ostrcmp("play=", param) == 0)) 927 931 { 928 932 int count = 0; … … 946 950 if(status.play == 1) 947 951 { 948 if(ostrcmp("stop", param) == 0 )952 if(ostrcmp("stop", param) == 0 || ostrcmp("stop=", param) == 0) 949 953 writerc(getrcconfigint("rcstop", NULL)); 950 954 951 if(ostrcmp("pause", param) == 0 )955 if(ostrcmp("pause", param) == 0 || ostrcmp("pause=", param) == 0) 952 956 writerc(getrcconfigint("rcpause", NULL)); 953 957 954 if(ostrcmp("ff", param) == 0 )958 if(ostrcmp("ff", param) == 0 || ostrcmp("ff=", param) == 0) 955 959 writerc(getrcconfigint("rcff", NULL)); 956 960 957 if(ostrcmp("fr", param) == 0 )961 if(ostrcmp("fr", param) == 0 || ostrcmp("fr=", param) == 0) 958 962 writerc(getrcconfigint("rcfr", NULL)); 959 963 … … 961 965 tmpbuf = ostrcat(param, NULL, 0, 0); 962 966 963 if(ostrcmp("getlen", param) == 0 )967 if(ostrcmp("getlen", param) == 0 || ostrcmp("getlen=", param) == 0) 964 968 { 965 969 unsigned long len = 0; … … 970 974 } 971 975 972 if(ostrcmp("getpos", param) == 0 )976 if(ostrcmp("getpos", param) == 0 || ostrcmp("getpos=", param) == 0) 973 977 { 974 978 unsigned long pos = 0; … … 979 983 } 980 984 981 if(ostrcmp("getisplaying", param) == 0 )985 if(ostrcmp("getisplaying", param) == 0 || ostrcmp("getisplaying=", param) == 0) 982 986 { 983 987 int playing = 0; … … 988 992 } 989 993 990 if(ostrcmp("getplayercan", param) == 0 )994 if(ostrcmp("getplayercan", param) == 0 || ostrcmp("getplayercan=", param) == 0) 991 995 { 992 996 free(tmpbuf); tmpbuf = NULL;
Note: See TracChangeset
for help on using the changeset viewer.