Closed seven-cm closed 1 year ago
Now the development version needs to return {"code": 0, "data": null}
, I guess the documentation hasn't been updated yet.
https://github.com/ossrs/srs/blob/9c21e5a16279344bc0accd33c0220f9c26af32ab/trunk/src/app/srs_app_http_hooks.cpp#L650-L655
TRANS_BY_GPT3
Test:
#define SRS_HTTP_RESPONSE_OK SRS_XSTR(ERROR_SUCCESS)
int main(int argc, char** argv, char** envp)
{
printf("SRS_HTTP_RESPONSE_OK=%s\n", SRS_HTTP_RESPONSE_OK);
return 0;
}
Return:
SRS_HTTP_RESPONSE_OK=ERROR_SUCCESS
It is because the mechanism is no longer correct after the error code has been changed.
TRANS_BY_GPT3
Description (描述)
SRS Version:
XCORE-SRS/5.0.78(Bee)
linkSRS Log:
Replay (重现)
Install depends tools.
RUN yum install -y gcc make gcc-c++ patch unzip perl git
Build and install SRS.
COPY . /srs WORKDIR /srs/trunk RUN ./configure --srt=on --jobs=2 && make -j2 && make install
All config files for SRS.
RUN cp -R conf /usr/local/srs/conf && \ cp research/api-server/static-dir/index.html /usr/local/srs/objs/nginx/html/ && \ cp research/api-server/static-dir/favicon.ico /usr/local/srs/objs/nginx/html/ && \ cp research/players/crossdomain.xml /usr/local/srs/objs/nginx/html/ && \ cp -R research/console /usr/local/srs/objs/nginx/html/ && \ cp -R research/players /usr/local/srs/objs/nginx/html/ && \ cp -R 3rdparty/signaling/www/demos /usr/local/srs/objs/nginx/html/
############################################################
dist
############################################################ FROM centos:7 AS dist
Expose ports for streaming @see https://github.com/ossrs/srs#ports
EXPOSE 1935 1985 8080 8000/udp 10080/udp
FFMPEG 4.1
COPY --from=build /usr/local/bin/ffmpeg /usr/local/srs/objs/ffmpeg/bin/ffmpeg
SRS binary, config files and srs-console.
COPY --from=build /usr/local/srs /usr/local/srs
Default workdir and command.
WORKDIR /usr/local/srs CMD ["./objs/srs", "-c", "conf/docker.conf"]