use the file path as data source for the mediaplayer
This commit is contained in:
parent
55679185ce
commit
a25651dc20
|
@ -259,7 +259,13 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
|||
|
||||
player!!.apply {
|
||||
reset()
|
||||
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
||||
|
||||
if (isQPlus()) {
|
||||
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
||||
} else {
|
||||
setDataSource(recording.path)
|
||||
}
|
||||
|
||||
prepare()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue