MyGit
🚩收到GitHub仓库的更新通知

nielsvanvelzen/jellyfin-android2

Fork: 1 Star: 1 (更新于 2024-03-16 05:04:19)

license: 暂无

Language: Kotlin .

Newly made Android WebView app for Jellyfin that doesn't use Cordova

GitHub网址

✨免费申请网站SSL证书,支持多域名和泛域名,点击查看

Jellyfin Android

This is not an official client

The current Jellyfin Android app uses Cordova and adds a bit of custom code on top of it. Unfortunately it is not possible to develop using Android Studio and sharing code with the Android TV client is hard because Cordova. When I was looking around in the code I noticed most of the "custom" code is defined in a JavaScript object called NativeShell. By supplying my own variant of it I could make the webview think it was an app.

The next thing I did was creating a simple Android app that contains a WebView and a JavaScriptInterface that the Nativeshell can interact with. That is the code you find in this repository.

Architecture

The MainActivity creates a WebViewFragment and gives it the Jellyfin server URL. The fragment will load this url and inject JavaScript into the index.html file it loads from the server. When sending data between the NativeShell in JS and Kotlin all JSON will be encoded to strings because objects are not supported in the WebView. So far this codebase is very much a prototype.

Running

Because this app, currently, loads the web client from a given server it needs a server URL. There is currently no way to specify this in the app because the value is hardcoded in the MainActivity. It is currently set to https://demo.jellyfin.org/stable/ but could be replaced with something else.

License

All code in this repository is currently not licensed. This means that, depending on your region, all rights belong to the original author (Niels van Velzen).

最近版本更新:(数据更新于 1970-01-01 00:00:00)

nielsvanvelzen/jellyfin-android2同语言 Kotlin最近更新仓库

2024-03-28 18:49:26 gkd-kit/gkd

2024-03-26 09:21:56 ReVanced/revanced-patches

2024-03-22 11:37:36 unit-mesh/auto-dev

2024-03-22 02:53:42 akexorcist/ruam-mij-android

2024-03-21 21:16:18 LeoColman/Petals

2024-03-21 17:21:18 tiann/KernelSU