forked from recloudstream/cloudstream
fixed downloaded video
This commit is contained in:
parent
8c0a6dffe9
commit
062d7feff9
1 changed files with 1 additions and 1 deletions
|
@ -1639,7 +1639,7 @@ class PlayerFragment : Fragment() {
|
||||||
@SuppressLint("SetTextI18n")
|
@SuppressLint("SetTextI18n")
|
||||||
private fun initPlayer() {
|
private fun initPlayer() {
|
||||||
if (isDownloadedFile) {
|
if (isDownloadedFile) {
|
||||||
initPlayer(null, uriData.uri)
|
initPlayer(null, uriData.uri.removePrefix("file://").replace("%20", " ")) // FIX FILE PERMISSION
|
||||||
}
|
}
|
||||||
println("INIT PLAYER")
|
println("INIT PLAYER")
|
||||||
view?.setOnTouchListener { _, _ -> return@setOnTouchListener true } // VERY IMPORTANT https://stackoverflow.com/questions/28818926/prevent-clicking-on-a-button-in-an-activity-while-showing-a-fragment
|
view?.setOnTouchListener { _, _ -> return@setOnTouchListener true } // VERY IMPORTANT https://stackoverflow.com/questions/28818926/prevent-clicking-on-a-button-in-an-activity-while-showing-a-fragment
|
||||||
|
|
Loading…
Reference in a new issue