mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:35:26 +00:00
parent
b01a334c69
commit
f9774938aa
1 changed files with 1 additions and 2 deletions
|
@ -788,9 +788,8 @@ let postSaveTimer = null;
|
|||
return `<li onclick ="setEmbedFiles('${send}')"><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
|
||||
//return `<li onclick ="choosePhotoFromAlbum('${send}')"><img src="/cloud/${address}/${result.display_path}" class="img-fluid img-thumbnail" ></li>`;
|
||||
case "video/mp4":
|
||||
case "video/webm":
|
||||
let sendmp4 = `/cloud/${address}/${result.display_path}`;
|
||||
return `<li class="border rounded my-1 p-2" ><h4 onclick ="setEmbedFiles('${sendmp4}')">${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><video poster="" controls="controls" preload="none" src="/cloud/${address}/${result.display_path}#t=0.1" style="width:100%;" /></li>`;
|
||||
return `<li class="border rounded my-1 p-2" ><h4 onclick ="setEmbedFiles('${sendmp4}')">${result.filename}<i class="float-end">{{$clicktitle}}</i></h4><video poster="images/video_poster.jpg" controls="controls" preload="none" src="/cloud/${address}/${result.display_path}" style="width:100%;" /></li>`;
|
||||
case "audio/mpeg":
|
||||
let sendmpeg = `/cloud/${address}/${result.display_path}`;
|
||||
return `<li class="border rounded my-1 p-2" onclick ="setEmbedFiles('${sendmpeg}')"><h4>${result.filename}</h4><img src="/images/mp3.png" class="img-fluid my-2" ><audio src="/cloud/${address}/${result.display_path}" controls="controls" preload="none" /></li>`;
|
||||
|
|
Loading…
Reference in a new issue