Reputation: 815
How to convert .ogg
file to any supported AVPlayer
file format so that I can play it in app. Now if I am uploading .ogg
file the player shows its raw data so how to solve this?
Upvotes: 1
Views: 1288
Reputation: 31
You can use mobile-ffmpeg!
MobileFFmpeg.execute("-hide_banner -y -i [filename].ogg -c:a libmp3lame -qscale:a 2 [filename].mp3")
(I found this from the sample code of mobile-FFmpeg)*note: if your .ogg
file is from the server, please download it first.
Upvotes: 3