anto
This commit is contained in:
@@ -125,7 +125,6 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||
}
|
||||
const choice = choiceSelect.value
|
||||
const measurementIds = getMeasurementsIdsFromForm(choice,firstInput,lastInput);
|
||||
console.log(measurementIds)
|
||||
postNewVideo(projectId, measurementIds, nameVideo, videoResolution, videoDuration)
|
||||
.then(()=>{
|
||||
alert('Nouvelle vidéo enregistrée :\nNom : ' + nameVideo +
|
||||
@@ -231,17 +230,17 @@ async function generateViewMetric(projectId) {
|
||||
let samples;
|
||||
if(videoId!=-1){
|
||||
currentVideoDatas = await getDataVideoFromApi(videoId);
|
||||
const pathToVideo = await getVideoFromApi(videoId)
|
||||
samples = currentVideoDatas[0]["measurement_ids"];
|
||||
samples = JSON.parse(currentVideoDatas[0]["measurement_ids"]);
|
||||
videoPlaceHolder.innerHTML=`
|
||||
<video width="600" controls>
|
||||
<source src="path/to/your/video.mp4" type="video/mp4">
|
||||
<source src="https://timelapse.kerboul.me/api/cat" type="video/mp4">
|
||||
Your browser does not support the video tag.
|
||||
</video>`
|
||||
tempoMeasure=filterAndSortMeasurementsByNumber(measurements, samples)
|
||||
} else {
|
||||
samples=measurements.map(measurements => measurements.id);
|
||||
tempoMeasure = filterAndSortMeasurementsByIds(measurements, samples);
|
||||
}
|
||||
tempoMeasure = filterAndSortMeasurementsByIds(measurements, samples);
|
||||
tempoMeasure.forEach((measure) => {
|
||||
datesMeasurement.push(measure.timestamp);
|
||||
Temperature.push(measure.temperature);
|
||||
|
||||
Reference in New Issue
Block a user