Skip to content

iOS custom audio module used in Network test does not clean up #46

@dheerajjain11

Description

@dheerajjain11

We are running Network test on iOS by first testing with test session id and later running an actual user session with actual session id for event. When running this use case, iOS App crashes. This crash does not happen if we use Android code. We looked at network test code for iOS and here is the issue:

• Network test overrides the microphone’s audio module with a custom audio module object
• After the test, the custom audio module object’s clean-up is attempted
• However, the clean-up seemingly fails, as when a real session tries to use the audio module later, it results in a crash
• We have tested that the crash is avoided when we bypass custom audio module settings in the sample. Here are snippets of code that we commented:

File: OTNetworkTest.m
Function Name: runConnectivityTestWithApiKey
Commented lines (66-72):
if(!_myAudioDevice)
{
_myAudioDevice = [[OTDefaultAudioDevice alloc] init];
}
[OTAudioDeviceManager setAudioDevice:_myAudioDevice];
[_myAudioDevice setAudioPlayoutMute:YES];

Function Name: dispatchResultsToDelegateWithResult
Commented lines (101-102)
[_myAudioDevice setAudioPlayoutMute:NO];
[OTAudioDeviceManager setAudioDevice:nil];
• In this case, the default audio device, picks up the audio, just as in case of a real session. But we get audio bandwidth difference as compared to when we use custom audio module

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions