use the file path as data source for the mediaplayer

This commit is contained in:
tibbi 2020-04-02 17:55:30 +02:00
parent 55679185ce
commit a25651dc20
1 changed files with 7 additions and 1 deletions

View File

@ -259,7 +259,13 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
player!!.apply {
reset()
if (isQPlus()) {
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
} else {
setDataSource(recording.path)
}
prepare()
}