mirror of
https://github.com/ossrs/srs.git
synced 2025-02-12 19:31:53 +00:00
update readme, add SampleHTTP link
This commit is contained in:
parent
4e3fe36ae2
commit
30e3323fe4
3 changed files with 4 additions and 1 deletions
|
@ -110,6 +110,7 @@ cd simple-rtmp-server/trunk
|
||||||
* [Usage: How to forward stream to other server?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleForward)
|
* [Usage: How to forward stream to other server?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleForward)
|
||||||
* [Usage: How to deploy low lantency application?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleRealtime)
|
* [Usage: How to deploy low lantency application?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleRealtime)
|
||||||
* [Usage: How to deploy SRS on ARM?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleARM)
|
* [Usage: How to deploy SRS on ARM?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleARM)
|
||||||
|
* [Usage: How to use SRS-HTTP-server to delivery HTTP/HLS stream?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleHTTP)
|
||||||
* [Usage: How to show the demo of SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleDemo)
|
* [Usage: How to show the demo of SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/SampleDemo)
|
||||||
* [Usage: Solution using SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/Sample)
|
* [Usage: Solution using SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/Sample)
|
||||||
* [Usage: Why SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/Product)
|
* [Usage: Why SRS?](https://github.com/winlinvip/simple-rtmp-server/wiki/Product)
|
||||||
|
|
|
@ -104,7 +104,7 @@ vhost http.srs.com {
|
||||||
# main dir of vhost,
|
# main dir of vhost,
|
||||||
# to delivery HTTP stream of this vhost.
|
# to delivery HTTP stream of this vhost.
|
||||||
# default: ./objs/nginx/html
|
# default: ./objs/nginx/html
|
||||||
dir ./objs/nginx/html;
|
dir ./objs/nginx/html/hls;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -195,6 +195,8 @@ int SrsHttpVhost::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
|
||||||
return res_xml(skt, req, str);
|
return res_xml(skt, req, str);
|
||||||
} else if (srs_string_ends_with(fullpath, ".js")) {
|
} else if (srs_string_ends_with(fullpath, ".js")) {
|
||||||
return res_javascript(skt, req, str);
|
return res_javascript(skt, req, str);
|
||||||
|
} else if (srs_string_ends_with(fullpath, ".json")) {
|
||||||
|
return res_json(skt, req, str);
|
||||||
} else if (srs_string_ends_with(fullpath, ".swf")) {
|
} else if (srs_string_ends_with(fullpath, ".swf")) {
|
||||||
return res_swf(skt, req, str);
|
return res_swf(skt, req, str);
|
||||||
} else if (srs_string_ends_with(fullpath, ".css")) {
|
} else if (srs_string_ends_with(fullpath, ".css")) {
|
||||||
|
|
Loading…
Reference in a new issue