channel surf through AtmosphereConf talks
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

Include current playback time in sp-vod link via ?t= param

Updates the channel title href on timeupdate so clicking it
opens the VOD at the same position currently showing on the TV.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+9 -2
+9 -2
public/index.html
··· 418 418 let overlayTimeout = null; 419 419 let switching = false; 420 420 let player = null; 421 + let currentRkey = null; 421 422 let staticCtx = staticCanvas.getContext('2d'); 422 423 let staticAnimFrame = null; 424 + 425 + video.addEventListener('timeupdate', () => { 426 + if (!currentRkey) return; 427 + const t = Math.floor(video.currentTime || 0); 428 + channelTitle.href = 'https://sp-vod.pages.dev/stream.place/video/' + currentRkey + '?t=' + t; 429 + }); 423 430 424 431 // --- Static TV audio (white noise via Web Audio API) --- 425 432 let staticAudioCtx = null; ··· 519 526 function showChannelInfo(ch, title, uri) { 520 527 channelNumber.textContent = 'CH ' + String(ch).padStart(2, '0'); 521 528 channelTitle.textContent = title; 522 - const rkey = uri.split('/').pop(); 523 - channelTitle.href = 'https://sp-vod.pages.dev/stream.place/video/' + rkey; 529 + currentRkey = uri.split('/').pop(); 530 + channelTitle.href = 'https://sp-vod.pages.dev/stream.place/video/' + currentRkey; 524 531 channelOverlay.classList.add('visible'); 525 532 clearTimeout(overlayTimeout); 526 533 }