rtmp://localhost:1935/rtmplive/room: Input/output error 推流出现问题解决

用Xcode打开nginx.conf, 找到/usr/local/etc/nginx/nginx.conf 文件,拖入到Dock中的Xcode,就可以打开.

或者打开Finder Shift + command + G前往,用记事本工具打开nginx.conf.

在nginx.conf的最后添加下面内容:

rtmp {

    server {

        listen 1935;


        application rtmplive {

            live on;

            max_connections 1024;

        }

        application zbcs {

            live on;

            record off;

        }

        application hls{

            live on;

            hls on;

            hls_path /usr/local/var/www/hls;

            hls_fragment 1s;

        }

    }

}



你可能感兴趣的:(iOS开发)