Remove dead code
parent
0796b58b87
commit
3f85f76d2e
|
@ -129,23 +129,6 @@ import java.net.URLDecoder
|
||||||
dlService!!.queue(url, filename)
|
dlService!!.queue(url, filename)
|
||||||
}
|
}
|
||||||
|
|
||||||
@JavascriptInterface
|
|
||||||
fun playVideoLocal(fileId: String?) {
|
|
||||||
if (fileId == null) return;
|
|
||||||
|
|
||||||
Thread {
|
|
||||||
// Get URI of local video
|
|
||||||
val videos = SystemImage.getByIds(mCtx, arrayListOf(fileId.toLong()))
|
|
||||||
if (videos.isEmpty()) return@Thread
|
|
||||||
val video = videos[0]
|
|
||||||
|
|
||||||
// Play with exoplayer
|
|
||||||
mCtx.runOnUiThread {
|
|
||||||
mCtx.initializePlayer(arrayOf(video.uri), fileId)
|
|
||||||
}
|
|
||||||
}.start()
|
|
||||||
}
|
|
||||||
|
|
||||||
@JavascriptInterface
|
@JavascriptInterface
|
||||||
fun playVideo(auid: String?, fileid: String?, urlsArray: String?) {
|
fun playVideo(auid: String?, fileid: String?, urlsArray: String?) {
|
||||||
if (auid == null || fileid == null || urlsArray == null) return
|
if (auid == null || fileid == null || urlsArray == null) return
|
||||||
|
|
Loading…
Reference in New Issue