Skip to content
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

failed to connect socket. 61 (Connection refused) #13

Open
yb7272838q opened this issue Aug 5, 2016 · 6 comments
Open

failed to connect socket. 61 (Connection refused) #13

yb7272838q opened this issue Aug 5, 2016 · 6 comments

Comments

@yb7272838q
Copy link

状态已经显示已连接,还是推不上去,在另一端拉流接受没有反应,大神可以帮帮忙吗?

ERROR: PILI_RTMP_Connect0, failed to connect socket. 61 (Connection refused)
ERROR: WriteN, PILI_RTMP send error 9, Bad file descriptor, (140 bytes)
2016-08-05 18:16:37.71573047:3348249] IJKSDLGLView:applicationWillResignActive: 0
2016-08-05 18:16:40.684 [73047:3348249] IJKSDLGLView:applicationDidEnterBackground: 2
2016-08-05 18:16:52.209 [73047:3348249] IJKSDLGLView:applicationWillEnterForeground: 2
2016-08-05 18:16:53.160 [73047:3348249] IJKSDLGLView:applicationDidBecomeActive:

@PandaWX
Copy link

PandaWX commented Sep 29, 2016

有人解决了吗?到底是为什么啊

@LLRouter
Copy link

一脸懵逼,搞不定

@Hadevs
Copy link

Hadevs commented Feb 12, 2017

Did you fix that problem? Please, reply

@tigerNongdahu
Copy link

我目前遇到了这样的情况:使用本地推流- ffmpeg -f avfoundation -framerate 30 -i "1:0" -f avfoundation -framerate 30 -video_size 640x480 -i "0" -c:v libx264 -preset slow -filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' -acodec libmp3lame -ar 44100 -ac 1 -f flv rtmp://192.168.1.101:1935/rtmplive/room 这样是可以进行推流,但是如果手机端使用LFLiveKit,URL:rtmp://192.168.1.101:1935/rtmplive/room时不行,总是连接不上!!!还有电脑进行推流后,模拟器可以实现直播(虽然延迟和卡顿),但是手机没有收到数据!!!!求助,求助,求助!!!help,help,help

@HemenduK
Copy link

HemenduK commented Oct 19, 2018

I was also facing same issue

I added Below code in /hls in http server setup and it's working fine now.

   # Disable cache
    add_header Cache-Control no-cache;

    # CORS setup
    add_header 'Access-Control-Allow-Origin' '*' always;
    add_header 'Access-Control-Expose-Headers' 'Content-Length';

    # allow CORS preflight requests
    if ($request_method = 'OPTIONS') {
        add_header 'Access-Control-Allow-Origin' '*';
        add_header 'Access-Control-Max-Age' 1728000;
        add_header 'Content-Type' 'text/plain charset=UTF-8';
        add_header 'Content-Length' 0;
        return 204;
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@yb7272838q @LLRouter @Hadevs @PandaWX @tigerNongdahu @HemenduK and others