Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an Exo Player equivalent in Flutter?

I'm new to Flutter and I'm trying to build an audio streaming app using Flutter for both Android and iOS. The audio files need to be protected and hence the idea is this: an encrypted version of the file will be stored on the server and the player on the app will need to decrypt on the fly and play the audio. After playing, or if paused, the files need to be in encrypted form. The app will also allow offline use which means that the encrypted files can be downloaded onto local storage or in cache. But the files should not be accessible in mp3 format and should not be easily stolen. Can I do something like this in Flutter?

like image 919
Felix Chandran Avatar asked May 30 '19 19:05

Felix Chandran


People also ask

What are the features of flutter_ExoPlayer?

Moreover Flutter_exoplayer offers many features such as: Providing realtime player states (PLAYING, PAUSED, STOPPED, RELEASED etc’). Run unlimited count of audios simultaneously. Providing audio Session ID for visualizers. Foreground – plays the audio in foreground service so Android won’t kill the service when app is in background.

What is flutter_ExoPlayer and how to use it?

Flutter_exoplayer uses the Java ExoPlayer library, which unlike Android's MediaPlayer offers fast audio buffering, especially when using playlists. All thanks to the ExoPlayer's ConcatenatingMediaSource that let's you use an audio list that allways buffers the next audios.

Which version of ExoPlayer should I use?

As it is a library, we can use any version of the ExoPlayer as per our application requirement. The traditional player features like play, pause, resume, skip, forward, rewind, and media buffering are supported. Exoplayer is designed so that it can be used flexibly.

What is the ExoPlayer's concatenatingmediasource?

All thanks to the ExoPlayer's ConcatenatingMediaSource that let's you use an audio list that allways buffers the next audios. This feature of the ExoPlayer let's you play playlists very smoothly.


Video Answer


1 Answers

https://pub.dev/packages?q=exoplayer turns up a few results, have you tried those to see if they have all your desired features?

  • https://pub.dev/packages/exoplayer
  • https://pub.dev/packages/flutter_exoplayer
  • https://pub.dev/packages/flutter_radio
  • https://pub.dev/packages/media_player

Even https://pub.dev/packages/video_player uses ExoPlayer on the Android side.

On Android, the backing player is ExoPlayer, please refer here for list of supported formats.

like image 192
TWL Avatar answered Sep 16 '22 12:09

TWL