-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visit HTTP FLV: http://192.168.1.170:8080/push/live/livestream.flv, why doesn't it work? #1255
Comments
Accessing HTTP FLV: http://192.168.1.170:8080/live/livestream.flv is also not working.
|
Has this problem been resolved later?
|
You used vhost, so the stream goes to that vhost. Accessing the default actually means
|
If there is a vhost, how should the access address for http be constructed?
|
vhost is the domain name, for example, a server serving two clients (domain name or vhost), the configured vhost is:
There are two ways for this client to access resources:
The second way mentioned above is the server IP and vhost in the parameters.
|
rtmp is the same as http, just change the protocol to rtmp. For example:
|
I tried the second method and it didn't work. The first method is not applicable either due to cross-domain issues. We have a separate deployment of nginx, so it doesn't work either. The vhost refers to the domain name, for example, when a server serves two clients (domains or vhosts), the configured vhost is:
Then this client can access resources in two ways: The second way mentioned above is using the server IP and vhost as parameters.
|
Just to add, I am using the current 2.0 version of the code.
|
I tried it out, and there is a problem with the last stream. I will fix it in SRS3.
|
In this case, are there any other methods to view the live streams in the vhost rt.ossrs.net, apart from the second last format (http://rt.ossrs.net:8080/live/livestream.flv)? If possible, please provide a solution based on HTTP FLV.
|
Fixed in 3.0.90. |
Taking the streaming server IP as an example, it is 192.168.1.170.
FMS URL: rtmp://192.168.1.170/live?vhost=push
Stream: livestream
Why can't I access HTTP FLV: http://192.168.1.170:8080/push/live/livestream.flv?
Print information:
[2018-11-01 16:12:04.230][warn][4695][117][2] http miss file=./objs/nginx/html/push/live/livestream.flv, pattern=/, upath=/push/live/livestream.flv
Configuration as follows,
listen 1935;
max_connections 1000;
daemon off;
srs_log_tank console;
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
vhost push {
min_latency on;
gop_cache off;
forward x.x.x.x:1935;
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
hstrs on;
}
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: