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

nielsvanvelzen/jellyfin-android2

Fork: 1 Star: 1 (更新于 2024-04-14 15:53:00)

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-04-18 12:03:08 skydoves/pokedex-compose

2024-04-18 03:49:16 markusfisch/BinaryEye

2024-04-18 00:05:02 ReVanced/revanced-patches

2024-04-15 04:59:28 jarnedemeulemeester/findroid

2024-04-12 22:08:50 JetBrains/compose-multiplatform

2024-04-11 20:51:52 JetBrains/intellij-platform-gradle-plugin