nixamp 0.70.2 → 0.72.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/guide-vods.d.ts +14 -0
- package/dist/guide-vods.js +52 -1
- package/dist/label-routes.js +2 -2
- package/dist/library-cli.d.ts +12 -0
- package/dist/library-cli.js +104 -7
- package/dist/library-routes.d.ts +3 -1
- package/dist/library-routes.js +8 -2
- package/dist/library-usage.d.ts +1 -1
- package/dist/library-usage.js +5 -2
- package/dist/music-client.d.ts +1 -1
- package/dist/music-store.d.ts +8 -4
- package/dist/music-store.js +47 -5
- package/dist/server.js +16 -2
- package/dist/store-routes.js +22 -2
- package/package.json +1 -1
- package/src/guide-vods.ts +57 -2
- package/src/label-routes.ts +2 -2
- package/src/library-cli.ts +87 -7
- package/src/library-routes.ts +11 -3
- package/src/library-usage.ts +5 -2
- package/src/music-client.ts +1 -1
- package/src/music-store.ts +46 -8
- package/src/server.ts +14 -1
- package/src/store-routes.ts +21 -1
- package/web/dist/assets/{ar-jDXDCVNY.js → ar-BAY790r_.js} +1 -1
- package/web/dist/assets/{cs-BJnZqm-c.js → cs-Dnd0wU5z.js} +1 -1
- package/web/dist/assets/{da-zJqSSmTU.js → da-BTG_DLNv.js} +1 -1
- package/web/dist/assets/{de-DadRfrUy.js → de-BB9QycNI.js} +1 -1
- package/web/dist/assets/{es-BIQJFRvu.js → es-Cs6keMnw.js} +1 -1
- package/web/dist/assets/{fi-1XwHBLdG.js → fi-bxOXvDHn.js} +1 -1
- package/web/dist/assets/{fr-DTC4ZuwO.js → fr-B-UE3TVX.js} +1 -1
- package/web/dist/assets/{hi-C-xpQYod.js → hi-D4AX0nAY.js} +1 -1
- package/web/dist/assets/{hu-fohpBFEb.js → hu-CrTnC9NF.js} +1 -1
- package/web/dist/assets/{id-CtburpoZ.js → id-BslqEFzn.js} +1 -1
- package/web/dist/assets/{it-D3PL9u_h.js → it-HdYbT4LS.js} +1 -1
- package/web/dist/assets/{main-cn_dq77R.js → main-C4mFMUwz.js} +2 -2
- package/web/dist/assets/{nl-BXp7vaVJ.js → nl-DAYlarHJ.js} +1 -1
- package/web/dist/assets/{radio-DmVc3wpH.js → radio-dUHZb5wV.js} +1 -1
- package/web/dist/assets/{ru-r9WLZlGW.js → ru-CkbRKXgo.js} +1 -1
- package/web/dist/assets/{station-6b_smJHe.css → station-CxJvFwzV.css} +1 -1
- package/web/dist/assets/{sv-QU3rIDyx.js → sv-8VcXZ-cb.js} +1 -1
- package/web/dist/assets/{uk-QYNAUmbC.js → uk-BfAPe5_Y.js} +1 -1
- package/web/dist/assets/{vi-D42PafzI.js → vi-DvdY8XXY.js} +1 -1
- package/web/dist/assets/vod-CdMhdfvg.js +1 -0
- package/web/dist/assets/{zh-D4yW0UaE.js → zh-ChBhO3vy.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/radio.html +1 -1
- package/web/dist/station.html +2 -2
- package/web/dist/sw.js +25 -25
- package/web/dist/vod.html +11 -2
- package/web/dist/watch.html +2 -2
- package/web/dist/assets/vod-BzQvQVLd.js +0 -1
- /package/web/dist/assets/{station-tWQPqySd.js → station-KW1WLKF4.js} +0 -0
- /package/web/dist/assets/{watch-B9LW8D1C.js → watch-fq5gXk7x.js} +0 -0
package/web/dist/vod.html
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
<title>On demand · nixamp</title>
|
|
7
7
|
<meta name="theme-color" content="#080c09" />
|
|
8
8
|
<link rel="icon" href="/favicon.png" type="image/png" sizes="64x64" />
|
|
9
|
-
<script type="module" crossorigin src="/assets/vod-
|
|
9
|
+
<script type="module" crossorigin src="/assets/vod-CdMhdfvg.js"></script>
|
|
10
10
|
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/chunk-Q2XQMA4B-BaoaSqsD.js">
|
|
12
12
|
<link rel="stylesheet" crossorigin href="/assets/chunk-Q2XQMA4B-DdHrVlSJ.css">
|
|
13
|
-
<link rel="stylesheet" crossorigin href="/assets/station-
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/station-CxJvFwzV.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<main class="station-app">
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
<h1 id="name"> </h1>
|
|
21
21
|
<div class="station-now"><div id="by" class="station-by"></div><div id="length" class="station-by"></div></div>
|
|
22
22
|
<p id="note" class="station-about" hidden></p>
|
|
23
|
+
<p id="buy" class="station-buy" hidden><a id="buy-link" href="https://nixamp.com/music">Download</a></p>
|
|
23
24
|
<p class="vod-share">
|
|
24
25
|
<input id="link" type="text" readonly aria-label="Link to this video" />
|
|
25
26
|
<button id="copy" type="button">Copy link</button>
|
|
@@ -32,6 +33,14 @@
|
|
|
32
33
|
<p class="station-about">Published files: play from the start, seek anywhere, share the link.</p>
|
|
33
34
|
<ul id="list" class="vod-list"></ul>
|
|
34
35
|
<p id="none" class="station-small" hidden>Nothing has been published here yet.</p>
|
|
36
|
+
<details class="vod-how">
|
|
37
|
+
<summary>Publish yours</summary>
|
|
38
|
+
<p class="station-about">Anything on your nixamp server that you may share (your own work, with permission, licensed, Creative Commons or public domain) can go here, with a link of its own.</p>
|
|
39
|
+
<ol class="station-about">
|
|
40
|
+
<li>In the browser: open your server in <a href="https://nixamp.com">nixamp.com</a> signed in, play the file, then <strong>Publish on live.streaming</strong>.</li>
|
|
41
|
+
<li>From the server, a whole folder at once:<br /><code>nixamp library publish ~/Videos/my-films --basis owned</code><br /><span class="station-small">One file: its id from <code>nixamp library search WORDS</code>. Add <code>--dry-run</code> to see what it picks first; <code>nixamp library vods</code> lists the links.</span></li>
|
|
42
|
+
</ol>
|
|
43
|
+
</details>
|
|
35
44
|
</section>
|
|
36
45
|
<p class="station-small"><a href="/vod">All videos</a> · <a href="/">On the air now</a> · Played by <a href="https://nixamp.com">nixamp</a>.</p>
|
|
37
46
|
<div id="announce" class="sr-only" aria-live="assertive"></div>
|
package/web/dist/watch.html
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
<meta name="robots" content="noindex" />
|
|
8
8
|
<meta name="theme-color" content="#080c09" />
|
|
9
9
|
<link rel="icon" href="/favicon.png" type="image/png" sizes="64x64" />
|
|
10
|
-
<script type="module" crossorigin src="/assets/watch-
|
|
10
|
+
<script type="module" crossorigin src="/assets/watch-fq5gXk7x.js"></script>
|
|
11
11
|
<link rel="modulepreload" crossorigin href="/assets/modulepreload-polyfill-P2Xu9kJm.js">
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/chunk-Q2XQMA4B-BaoaSqsD.js">
|
|
13
13
|
<link rel="stylesheet" crossorigin href="/assets/chunk-Q2XQMA4B-DdHrVlSJ.css">
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/station-
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/assets/station-CxJvFwzV.css">
|
|
15
15
|
</head>
|
|
16
16
|
<body>
|
|
17
17
|
<main class="station-app">
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./modulepreload-polyfill-P2Xu9kJm.js";import{a as e,o as t,r as n,s as r}from"./chunk-Q2XQMA4B-BaoaSqsD.js";/* empty css */var i=e=>document.querySelector(e),a=e=>{i(`#announce`).textContent=e},o=/^\/vod\/([A-Za-z0-9_-]{1,32})\/?$/.exec(location.pathname)?.[1]??``;function s(e,t){let n=i(`#state`);n.className=`station-chip `+e,n.textContent=t}async function c(){i(`#one`).hidden=!1;let c=await fetch(`/api/v1/guide/vods/${o}`,{cache:`no-store`}).catch(()=>null),l=c?.ok?(await c.json()).vod:null;if(!l){i(`#name`).textContent=`That video is not here`,i(`#note`).textContent=`It may have been taken off. See everything that is.`,i(`#note`).hidden=!1,s(`unavailable`,`Unavailable`),i(`.vod-share`).hidden=!0;return}document.title=`${l.name} · on demand`,i(`#name`).textContent=l.name,i(`#by`).textContent=l.artist,i(`#length`).textContent=l.duration>0?e(l.duration):``,l.note&&(i(`#note`).textContent=l.note,i(`#note`).hidden=!1);let u=i(`#link`);u.value=l.page,i(`#copy`).addEventListener(`click`,()=>{navigator.clipboard?.writeText(u.value).then(()=>a(`Link copied`),()=>{u.select(),a(`Select and copy the link`)}),i(`#copy`).textContent=`Copied`,setTimeout(()=>{i(`#copy`).textContent=`Copy link`},1500)}),typeof navigator.share==`function`&&(i(`#share`).hidden=!1,i(`#share`).addEventListener(`click`,()=>{navigator.share({title:l.name,url:u.value}).catch(()=>void 0)})),i(`#raw`).href=l.play,i(`#nixamp`).href=`https://nixamp.com/?play=${encodeURIComponent(l.play)}`,s(`vod`,l.kind===`video`?`On demand · video`:`On demand · audio`),n(i(`#stage`),{src:l.play,kind:l.kind===`video`?`mp4`:`audio`,audio:l.kind===`audio`,live:!1,mediaId:`nixamp-vod:${l.id}`,startAt:r(new URLSearchParams(location.search).get(`t`)),shareUrl:e=>`${l.page}?t=${t(e)}`,unplayableAdvice:`Open in another player (VLC can) with the link below.`}).media.addEventListener(`error`,()=>s(`unavailable`,l.available?`Could not play it here`:`Its server is not answering`))}async function l(){i(`#all`).hidden=!1;let e=await fetch(`/api/v1/guide/vods`,{cache:`no-store`}).catch(()=>null),t=e?.ok?(await e.json()).vods:[],n=i(`#list`);for(let e of t){let t=document.createElement(`a`);t.href=new URL(e.page).pathname;let r=document.createElement(`div`);r.className=`vod-name`,r.textContent=e.name;let i=document.createElement(`div`);i.className=`vod-meta`,i.textContent=[e.kind===`video`?`Video`:`Audio`,e.nowPlaying?.title,e.nowPlaying?.artist,e.state===`offline`?`not answering`:``].filter(Boolean).join(` · `),t.append(r,i);let a=document.createElement(`li`);a.append(t),n.append(a)}i(`#none`).hidden=t.length>0}o?c():l();
|
|
File without changes
|
|
File without changes
|