mirror of
https://github.com/SimpleMobileTools/Simple-Voice-Recorder.git
synced 2025-06-05 21:59:31 +02:00
use the file path as data source for the mediaplayer
This commit is contained in:
@@ -259,7 +259,13 @@ class PlayerFragment(context: Context, attributeSet: AttributeSet) : MyViewPager
|
|||||||
|
|
||||||
player!!.apply {
|
player!!.apply {
|
||||||
reset()
|
reset()
|
||||||
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
|
||||||
|
if (isQPlus()) {
|
||||||
|
setDataSource(context, getAudioFileContentUri(recording.id.toLong()))
|
||||||
|
} else {
|
||||||
|
setDataSource(recording.path)
|
||||||
|
}
|
||||||
|
|
||||||
prepare()
|
prepare()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user