Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2014-04-05 13:38:05 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
30e3323fe40b61b4684ccf8380491fc7568de3df
30e3323f
1 parent
4e3fe36a
update readme, add SampleHTTP link
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
4 行增加
和
1 行删除
README.md
trunk/conf/full.conf
trunk/src/app/srs_app_http_conn.cpp
README.md
查看文件 @
30e3323
...
...
@@ -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 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 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: Solution using SRS?
](
https://github.com/winlinvip/simple-rtmp-server/wiki/Sample
)
*
[
Usage: Why SRS?
](
https://github.com/winlinvip/simple-rtmp-server/wiki/Product
)
...
...
trunk/conf/full.conf
查看文件 @
30e3323
...
...
@@ -104,7 +104,7 @@ vhost http.srs.com {
# main dir of vhost,
# to delivery HTTP stream of this vhost.
# default: ./objs/nginx/html
dir
./
objs
/
nginx
/
html
;
dir
./
objs
/
nginx
/
html
/
hls
;
}
}
...
...
trunk/src/app/srs_app_http_conn.cpp
查看文件 @
30e3323
...
...
@@ -195,6 +195,8 @@ int SrsHttpVhost::do_process_request(SrsSocket* skt, SrsHttpMessage* req)
return
res_xml
(
skt
,
req
,
str
);
}
else
if
(
srs_string_ends_with
(
fullpath
,
".js"
))
{
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"
))
{
return
res_swf
(
skt
,
req
,
str
);
}
else
if
(
srs_string_ends_with
(
fullpath
,
".css"
))
{
...
...
请
注册
或
登录
后发表评论