faradayfuture commited on
Commit
dc154e7
路
verified 路
1 Parent(s): 145c68a

teleop: mp4 file chips -> clip.html (with back button)

Browse files
Files changed (1) hide show
  1. teleopSample/sort_ep1.html +3 -2
teleopSample/sort_ep1.html CHANGED
@@ -217,8 +217,9 @@ window.addEventListener('resize',()=>update());
217
  const HFDS='https://huggingface.co/datasets/faradayfuture/teleopSample';
218
  document.getElementById('dsLink').href=HFDS+'/tree/main';
219
  const fm=document.getElementById('fileManifest');
220
- CAMS.forEach(c=>{ const a=document.createElement('a'); a.className='file-chip'; a.href=`media/${SLUG}/${c.key}.mp4`;
221
- a.setAttribute('download',`${SLUG}_${c.key}.mp4`); a.innerHTML=`${c.key}.mp4`; fm.appendChild(a); });
 
222
  [[SLUG+'.parquet',SLUG+'.parquet'],
223
  [SLUG+'.meta.json',SLUG+'.meta.json']].forEach(([lbl,href])=>{
224
  const a=document.createElement('a'); a.className='file-chip'; a.href=href; a.innerHTML=lbl; fm.appendChild(a); });
 
217
  const HFDS='https://huggingface.co/datasets/faradayfuture/teleopSample';
218
  document.getElementById('dsLink').href=HFDS+'/tree/main';
219
  const fm=document.getElementById('fileManifest');
220
+ CAMS.forEach(c=>{ const a=document.createElement('a'); a.className='file-chip';
221
+ a.href=`clip.html?v=${encodeURIComponent('media/'+SLUG+'/'+c.key+'.mp4')}&back=${encodeURIComponent(SLUG+'.html')}&t=${encodeURIComponent(SLUG+' 路 '+c.key)}`;
222
+ a.innerHTML=`${c.key}.mp4`; fm.appendChild(a); });
223
  [[SLUG+'.parquet',SLUG+'.parquet'],
224
  [SLUG+'.meta.json',SLUG+'.meta.json']].forEach(([lbl,href])=>{
225
  const a=document.createElement('a'); a.className='file-chip'; a.href=href; a.innerHTML=lbl; fm.appendChild(a); });