Remove dead code

pull/653/merge
Varun Patil 2023-10-01 18:43:38 -07:00
parent 0796b58b87
commit 3f85f76d2e
1 changed files with 0 additions and 17 deletions

View File

@ -129,23 +129,6 @@ import java.net.URLDecoder
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
fun playVideo(auid: String?, fileid: String?, urlsArray: String?) {
if (auid == null || fileid == null || urlsArray == null) return