diff options
-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; } |