Open buaalinux opened 7 years ago
can you share please the nginx.conf file to understand how is configured your server? what do you have running in port 8080 ?
11 rtmp {
12 server {
13 listen 1935;
14 chunk_size 4096;
15 application myapp1 {
16 live on;
17 }
18 application myapp2 {
19 live on;
20 }
21 application hls {
22 live on;
23 hls on;
24 hls_path /tmp/hls;
25 }
26 }
27 }
28
29 events {
30 worker_connections 1024;
31 }
32
33
34 http {
35 include mime.types;
36 default_type application/octet-stream;
37
38 #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
39 # '$status $body_bytes_sent "$http_referer" '
40 # '"$http_user_agent" "$http_x_forwarded_for"';
41
42 #access_log logs/access.log main;
43
44 sendfile on;
45 #tcp_nopush on;
46
47 #keepalive_timeout 0;
48 keepalive_timeout 65;
49
50 #gzip on;
51
52 server {
53 listen 8080;
54 server_name 192.168.179.106;
55 location /control {
56 rtmp_control all;
57 }
58 location /stat {
59 rtmp_stat all;
60
61 # Use this stylesheet to view XML as web page
62 # in browser
63 rtmp_stat_stylesheet stat.xsl;
64 }
65 location /stat.xsl {
66 # XML stylesheet to view RTMP stats.
67 # Copy stat.xsl wherever you want
68 # and put the full directory path here
69 root /mnt/nginx-rtmp-module/;
70 }
71 }
is it enough?
I use ffmpeg push stream to rtmp server in 2 client,use other 2 client receiving stream,now I want to disable one of stream,how to do that?“curl http://192.168.179.106:8080/control/drop/client?app=myapp1&name=test1” sometimes it succeed,sometimes it failed,who tell me the method which must be successful?