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 {
|
player!!.apply {
|
||||||
reset()
|
reset()
|
||||||
|
|
||||||
|
if (isQPlus()) {
|
||||||
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
||||||
|
} else {
|
||||||
|
setDataSource(recording.path)
|
||||||
|
}
|
||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue