h6ah4i / android-openslmediaplayer

Re-implementation of Android's MediaPlayer and audio effect classes based on OpenSL ES APIs.
https://openslmediaplayer.h6ah4i.com
Apache License 2.0
419 stars 97 forks source link

Question: can someone explain me the differences from every type of player please? #38

Closed SluggedGerm2 closed 7 years ago

SluggedGerm2 commented 7 years ago

I don't find the real differences from OpenSLPlayer, StandardMediaPlayer and IBasicMediaPlayer. Which one should I use?

h6ah4i commented 7 years ago

Hi. Here's the summary of each classes/interface.

class description
IBasicMediaPlayer A common interface of OpenSLMediaPlayer and StandardMediaPlayer
StandardMediaPlayer A media player that uses Android's MediaPlayer backend
OpenSLMediaPlayer A media player that uses C++ OpenSL ES APIs for its backend

Note that there is no HybridMediaPlayer class in this library. HybridMediaPlayerFactory produces OpenSLMediaPlayer that is configured to use AudioTrack based audio sink, which is more stable (less glitches) than OpenSL based sink one.

ref.) https://github.com/h6ah4i/android-openslmediaplayer/wiki/API-Overview

SluggedGerm2 commented 7 years ago

Tanks, So which one do you suggest?