diff options
-rw-r--r-- | transcoder/src/snippet.rs | 4 | ||||
-rw-r--r-- | web/script/player/player.ts | 2 | ||||
-rw-r--r-- | web/script/player/track.ts | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/transcoder/src/snippet.rs b/transcoder/src/snippet.rs index 969a2ec..4a55c13 100644 --- a/transcoder/src/snippet.rs +++ b/transcoder/src/snippet.rs @@ -7,7 +7,7 @@ use crate::LOCAL_TRANSCODING_TASKS; use jellybase::cache::async_cache_file; use jellycommon::{jhls::EncodingProfile, AssetLocation}; -use log::info; +use log::{debug, info}; use std::process::Stdio; use tokio::{ io::copy, @@ -23,7 +23,7 @@ pub async fn transcode( &["snip-tc", key, &format!("{enc:?}")], move |mut output| async move { let _permit = LOCAL_TRANSCODING_TASKS.acquire().await?; - info!("transcoding snippet {key}"); + debug!("transcoding snippet {key}"); let mut args = Vec::new(); match enc { diff --git a/web/script/player/player.ts b/web/script/player/player.ts index acf2a19..8425279 100644 --- a/web/script/player/player.ts +++ b/web/script/player/player.ts @@ -74,7 +74,7 @@ export class Player { } async fetch_meta() { - this.set_pers("Fetching initial segments...") + this.set_pers("Loading media manifest...") const res = await fetch(`/n/${encodeURIComponent(this.node_id)}/stream?format=jhls`) if (!res.ok) return this.error.value = "Cannot download JHLS metadata" const metadata = await res.json() as JhlsMetadata diff --git a/web/script/player/track.ts b/web/script/player/track.ts index 4173b12..3f1e073 100644 --- a/web/script/player/track.ts +++ b/web/script/player/track.ts @@ -82,7 +82,7 @@ export class PlayerTrack { async load(index: number) { this.loading.add(index) await this.player.profile_selector.select_optimal_profile(this.track_index, this.profile) - const url = `/n/${encodeURIComponent(this.node_id)}/stream?format=hlsseg&tracks=${this.track_index}&index=${index}${this.profile.value ? `&profile=${this.profile.value.id}` : ""}`; + const url = `/n/${encodeURIComponent(this.node_id)}/stream?format=hlsseg&webm=true&tracks=${this.track_index}&index=${index}${this.profile.value ? `&profile=${this.profile.value.id}` : ""}`; const buf = await this.player.downloader.download(url) await new Promise<void>(cb => { this.append_queue.push({ buf, ...this.metadata.segments[index], index, cb }) |