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

SeekTo speed #48

Open SluggedGerm2 opened 6 years ago

SluggedGerm2 commented 6 years ago

Actually, it seems it is taking much time to make SeekTo Action, is there a way to increase his speed? This is how I create the Player

    `OpenSLMediaPlayerContext.Parameters` parameters = new OpenSLMediaPlayerContext.Parameters();

    parameters.streamType = AudioManager.STREAM_MUSIC;

    openSLMediaPlayerContext = new OpenSLMediaPlayerContext(context,parameters); 

    player = new OpenSLMediaPlayer(openSLMediaPlayerContext, 0);    `

The seekTo is called by onStopTrackingTouch of seekbar.