From 88734e0f3ffdbce436fd0ceeabea70b96c60f1f8 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 30 Jan 2024 12:35:22 +0100 Subject: launch native button in player --- web/script/player/mod.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'web') 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; } -- cgit v1.2.3-70-g09d2