diff options
author | metamuffin <metamuffin@disroot.org> | 2024-01-30 12:35:22 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-01-30 12:35:22 +0100 |
commit | 88734e0f3ffdbce436fd0ceeabea70b96c60f1f8 (patch) | |
tree | c9febec4420280fad7a4565ea1ff236c30bdf27d | |
parent | 46fe19f1c0814fa3975f60dcdd17c1680b161c3c (diff) | |
download | jellything-88734e0f3ffdbce436fd0ceeabea70b96c60f1f8.tar jellything-88734e0f3ffdbce436fd0ceeabea70b96c60f1f8.tar.bz2 jellything-88734e0f3ffdbce436fd0ceeabea70b96c60f1f8.tar.zst |
launch native button in player
-rw-r--r-- | web/script/player/mod.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/web/script/player/mod.ts b/web/script/player/mod.ts index c9c1ebc..fa83a2b 100644 --- a/web/script/player/mod.ts +++ b/web/script/player/mod.ts @@ -116,7 +116,12 @@ function initialize_player(el: HTMLElement, node_id: string) { const button = e("button", "settings", { class: "icon" }) new Popup(button, popups, () => e("div", { class: "jsp-settings-popup" }, e("h2", "Settings"), - playersync_controls(sync_state, player) + playersync_controls(sync_state, player), + e("button", "Launch Native Player", { + onclick: () => { + window.location.href = `jellynative://player-fullscreen/${window.location.protocol}//${window.location.host}/n/${encodeURIComponent(node_id)}/stream?format=hlsmaster` + } + }) )) return button; } |