Updated LatestAnnotation, CurrentSegmentInfobox, AnnotationController and AnnotationList widgets to use timerange to find the current segment when the corresponding option is used + CurrentSegmentInfobox now has an option for editing the current segment + LatestAnnotation now has a "Copy and edit" button that allows to use the text from the currently displayed annotation into the CreateAnnotation widget textarea
<?php
$data = json_decode(file_get_contents("php://input"));
if (!isset($data->annotations[0]->id)) {
$data->annotations[0]->id = uniqid("annotation_");
}
if (!isset($data->annotations[0]->type)) {
$data->annotations[0]->type = uniqid("annotationType_");
}
print_r(json_encode($data));
?>