Weird Audio Issues with iOS
Posted: Sun May 31, 2015 2:37 pm
I have a simple iOS application that I am working on, which is basically a customized podcast player.
The app fetches the podcast rss/xml feed from a website, and populates a datagrid. Once an "episode" is selected in the datagrid, the app downloads an mp3 into a temporary folder and then attempts to play the file.
The issue I am having is that if I play the mp3 with "mobilePlaySoundOnChannel", the audio sounds very choppy and distorted. It sounds very "robotic". At first I thought the issue was the file itself, but if I import the file into iTunes and sync it to iPhone and play it with the built-in apple music app, it's crystal clear.
As another experiment, I tried to create a video player with mobileControlCreate in my app and pass the mp3 file as the "video", but it has the same audio distortion.
I then tried to embed a "browser" mobile control into the app and the mp3 plays correctly, but it has the downside of unwanted UI experiencing.
Has anyone seen this? Is there a trick to working mp3 files? Any suggestions on working around the issue?
The app fetches the podcast rss/xml feed from a website, and populates a datagrid. Once an "episode" is selected in the datagrid, the app downloads an mp3 into a temporary folder and then attempts to play the file.
The issue I am having is that if I play the mp3 with "mobilePlaySoundOnChannel", the audio sounds very choppy and distorted. It sounds very "robotic". At first I thought the issue was the file itself, but if I import the file into iTunes and sync it to iPhone and play it with the built-in apple music app, it's crystal clear.
As another experiment, I tried to create a video player with mobileControlCreate in my app and pass the mp3 file as the "video", but it has the same audio distortion.
I then tried to embed a "browser" mobile control into the app and the mp3 plays correctly, but it has the downside of unwanted UI experiencing.
Has anyone seen this? Is there a trick to working mp3 files? Any suggestions on working around the issue?