knowHow
knowHow

Reputation: 3

How to Play 3gpp files with Angular Js App

I have tried ngAudio but it doesn't support 3gpp.

How can Play 3gpp files in my app without asking for any plugin to download?

I Mean to say I'm able to Play mp3, wav files using native audio player.

I want to achieve same for 3gp format too.

Please suggest for any Angular plugin or any idea?

Thanks in Advance.

Upvotes: -2

Views: 814

Answers (1)

guzmonne
guzmonne

Reputation: 2540

I think the problem you have is not really related to AngularJS but with the codecs of common browsers. I believe that Safari runs the 3GPP codec but that is probably it. You should instead consider running a converter on your server, so you can play more browser-friendly formats.

I suggest you take a look at "ffmpeg", which is a "framework able to, decode, encode, transcode, mux, demux, stream, filter and play" (taken directly from their web). You haven't mentioned the server you are running on your backend, but yous shouldn't have much problem finding a wrapper to run ffmpeg, or build your own. If you are running node then I suggest this library:

Fluent FFMPEG

After you run it, is very simple to convert your files. Just check their docs.

Then you could just use the native audio player or some other library.

Hope this helps.

Upvotes: 0

Related Questions