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

1.8.0 demo 关闭直播,还是会自动链接服务器,状态为已连接 #12

Closed
twenty-zp opened this issue Jul 15, 2016 · 12 comments
Closed

Comments

@twenty-zp
Copy link

twenty-zp commented Jul 15, 2016

同时,如果服务器未打开,点击开始直播后,再次点击播报会崩溃到LFStreamRtmpSockert.m

- (void)_stop{
    if(self.delegate && [self.delegate respondsToSelector:@selector(socketStatus:status:)]){
        [self.delegate socketStatus:self status:LFLiveStop];
    }
    if(_rtmp != NULL){
        PILI_RTMP_Close(_rtmp, &_error);
        PILI_RTMP_Free(_rtmp);
        _rtmp = NULL;
    }
} 
@chenliming777
Copy link

chenliming777 commented Jul 15, 2016

哦哦 这个解了 但没有更新pod 看下这个提交 3c58ff7

@chenliming777
Copy link

另外你说1.8.0关闭直播 还是会自动链接服务器,这个我这边没复现,LFLiveKitDemo

@twenty-zp
Copy link
Author

twenty-zp commented Jul 15, 2016

执行的时候,并未到clean 就已经崩溃。 重现: 点击开始直播, 在状态为“连接中“的时候再次点击结束直播状态为“连接错误”就会崩溃。

@chenliming777
Copy link

好的 谢谢反馈 我调试好了回复你

@nnianhouss
Copy link

nnianhouss commented Jul 16, 2016

楼主 LFLiveKit可不可以支持下swift

@chenliming777
Copy link

用swift语言重新写一份还是什么意思

@nnianhouss
Copy link

@chenliming777 不是重新写一份,swift可以调用OC 。swift创建的工程 通过pod或手动 导入LFLiveKit 编译报错 ,你可以用swift工程试试 最近在写swift项目直播,看到楼主的框架不错,就想试试

@chenliming777
Copy link

好的 会尝试的

@chenliming777
Copy link

@twenty-zp 开始直播连接中在点击直播崩溃这个应该好了

@twenty-zp
Copy link
Author

commit中没看到你修改的代码地方啊

@chenliming777
Copy link

static dispatch_queue_t YYRtmpSendQueue() {
static YYDispatchQueuePool *pool;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
pool = [[YYDispatchQueuePool alloc] initWithName:@"com.youku.laifeng.rtmpsendQueue" queueCount:1 qos:NSQualityOfServiceDefault];
});

dispatch_queue_t queue = [pool queue];
return queue;

}

这里原来线程不是一个的问题导致的

@chenliming777
Copy link

@nnianhou- swiftDemo toss156已经写好了,在develop下面

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

3 participants