mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed #657
This commit is contained in:
parent
f8ae9a09f5
commit
639ce66c2e
1 changed files with 8 additions and 3 deletions
|
@ -12,6 +12,7 @@ import androidx.appcompat.app.AlertDialog
|
||||||
import androidx.core.view.isGone
|
import androidx.core.view.isGone
|
||||||
import androidx.core.view.isVisible
|
import androidx.core.view.isVisible
|
||||||
import androidx.lifecycle.ViewModelProvider
|
import androidx.lifecycle.ViewModelProvider
|
||||||
|
import com.google.android.exoplayer2.util.MimeTypes
|
||||||
import com.google.android.material.button.MaterialButton
|
import com.google.android.material.button.MaterialButton
|
||||||
import com.hippo.unifile.UniFile
|
import com.hippo.unifile.UniFile
|
||||||
import com.lagradost.cloudstream3.*
|
import com.lagradost.cloudstream3.*
|
||||||
|
@ -143,11 +144,15 @@ class GeneratorPlayer : FullScreenPlayer() {
|
||||||
private fun openSubPicker() {
|
private fun openSubPicker() {
|
||||||
subsPathPicker.launch(
|
subsPathPicker.launch(
|
||||||
arrayOf(
|
arrayOf(
|
||||||
"text/vtt",
|
|
||||||
"application/x-subrip",
|
|
||||||
"text/plain",
|
"text/plain",
|
||||||
"text/str",
|
"text/str",
|
||||||
"application/octet-stream"
|
"application/octet-stream",
|
||||||
|
MimeTypes.TEXT_UNKNOWN,
|
||||||
|
MimeTypes.TEXT_VTT,
|
||||||
|
MimeTypes.TEXT_SSA,
|
||||||
|
MimeTypes.APPLICATION_TTML,
|
||||||
|
MimeTypes.APPLICATION_MP4VTT,
|
||||||
|
MimeTypes.APPLICATION_SUBRIP,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue