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

Audio is not playing? #61

Open
GopiK14 opened this issue May 14, 2018 · 5 comments
Open

Audio is not playing? #61

GopiK14 opened this issue May 14, 2018 · 5 comments

Comments

@GopiK14
Copy link

GopiK14 commented May 14, 2018

Hi Team,

We need to play audio file received from andriod, we get in 2 formats .mp3 or .aac. Both the audio format not playing in iOS with 'ZHCAudioMediaItem'. We tried to convert the same to 'm4a' and tried but no luck.

#1 - Confirm receive audio has data - we renamed local file extension to m4a - it working fine - just confirm audio is not a problem.

#2 - Please check screenshot - its print audiodata bytes so audiodata is not nil.

screen shot 2018-05-15 at 1 51 02 am

Any solution, Please suggest some other solutions.

@deankai
Copy link

deankai commented May 15, 2018

convert data to m4a not fileName.aac. If u don't know what's wrong with ur code. u should check audio guide. aac is sort format not fileName.

@GopiK14
Copy link
Author

GopiK14 commented May 15, 2018

Thanks! I renamed the received file to .m4a once downloaded but it not playing. If possible, can you share a audio conversion code would be really helpful.

@GopiK14
Copy link
Author

GopiK14 commented May 16, 2018

Any solution for this?

@deankai
Copy link

deankai commented May 16, 2018

did u play audio from file , not data? When u get data ,then save it to file ,then get data from file. Make sure that u get right file name. And it can really be played , like demo.

@GopiK14
Copy link
Author

GopiK14 commented May 16, 2018

Yes, I write the data to local file with .m4a format but not player. Is it support mp3 format right or we need to consider other formats?

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

2 participants