This commit is contained in:
arussac
2025-03-10 17:44:59 +01:00
parent cc72defe9e
commit 88becb43cf

View File

@@ -272,11 +272,15 @@ async function generateViewMetric(projectId) {
if(videoId!=-1 ){
currentVideoDatas = await getDataVideoFromApi(videoId);
samples = JSON.parse(currentVideoDatas[0]["measurement_ids"]);
if(currentVideoDatas[0].status != 0){
videoPlaceHolder.innerHTML=`
<video width="600" controls>
<source src="${api_url}/videos/file/${videoId}" type="video/mp4">
Your browser does not support the video tag.
</video>`
} else {
videoPlaceHolder.innerHTML=`<h2>La vidéo n'a pas été rendered</h2>`
}
deletePlaceHolder.innerHTML=`
<button id="delete-video" class="btn btn-danger delete-video-button" data-video-id="${videoId}">Delete Video</button>
`