diff --git a/app/src/main/java/gallery/memories/NativeX.kt b/app/src/main/java/gallery/memories/NativeX.kt index 0ac03b69..1be7dd00 100644 --- a/app/src/main/java/gallery/memories/NativeX.kt +++ b/app/src/main/java/gallery/memories/NativeX.kt @@ -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