I am facing an issue when I captured a video stream using Wowza SDK MP4Writer. Here's the link I am save recording stream as mp4 format in iOS and upload on S3 bucket. When I am trying to play save mp4 video stream on android media player then its audio is muted. Although same video is playing fine on iOS (No audio muted issue).
I have changed the CMAudioFormatDescriptionRef class but no success.
(CMAudioFormatDescriptionRef) makeAudioFormatDescription {
CMAudioFormatDescriptionRef audioFormat = nil;
AudioStreamBasicDescription absd = {0};
absd.mSampleRate = [[AVAudioSession sharedInstance] sampleRate];
absd.mFormatID = kAudioFormatMPEG4AAC;
absd.mFormatFlags = kMPEG4Object_AAC_Main;
CMAudioFormatDescriptionCreate(NULL, &absd, 0, NULL, 0, NULL, NULL, &audioFormat);
return audioFormat;
}
Video should play fine on both platforms (iOS & Android).