fixed: stream view interrupted by mic stream
This commit is contained in:
1 parent
e177d6eaea
commit
a386867dd0
1 file changed
+8
-8
@@ -1275,14 +1275,14 @@
|
|||||||
- (void) stageComplete:(const char*)stageName {
|
- (void) stageComplete:(const char*)stageName {
|
||||||
_micStreamInitialized = false;
|
_micStreamInitialized = false;
|
||||||
if(strcmp(stageName, "mic stream establishment")==0){
|
if(strcmp(stageName, "mic stream establishment")==0){
|
||||||
|
dispatch_time_t delay = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC));
|
||||||
if(_streamConfig.redirectMic){
|
dispatch_after(delay, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
|
||||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
if(self->_streamConfig.redirectMic){
|
||||||
self->_micStreamInitialized = true;
|
self->_micStreamInitialized = true;
|
||||||
self->micHandler = [MicHandler new];
|
self->micHandler = [MicHandler new];
|
||||||
[self->micHandler startTapping];
|
[self->micHandler startTapping];
|
||||||
});
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strcmp(stageName, "mic stream unsupported or unintialized")==0){
|
if(strcmp(stageName, "mic stream unsupported or unintialized")==0){
|
||||||
|
|||||||
Reference in new issue
Block a user