$value) { if (!empty($value['response'])) { $response = json_decode($value['response']); $transcriptionJson = json_decode($response->transcriptionJson); foreach ($response->shorts as $key2 => $shorts) { foreach ($shorts as $key3 => $short) { if ($short->endTimeInSeconds - $short->startTimeInSeconds < 30) { continue; } $responses[] = $short; } } } } function getTranscriptionJson($start, $end, $transcriptionJson) { $lines = array(); foreach ($transcriptionJson as $key => $value) { if ($start <= $value->startInSeconds && $end >= $value->endInSeconds) { $parts = explode('.', $value->start); $lines[] = "

{$parts[0]} $value->text

"; //$lines[] = "

{$value->start}: $start <= $value->startInSeconds && $end >= $value->endInSeconds

"; } } return $lines; } function getShortsButtons($key) { global $bookmark; $buttons = array(); $buttons[] = ''; $buttons[] = ''; $buttons[] = ''; $buttons[] = ''; $buttons[] = ''; if ($bookmark) { $buttons[] = ''; } return implode(PHP_EOL, $buttons); } $bookmark = AVideoPlugin::isEnabledByName('Bookmark'); //var_dump($transcriptionJson); ?>
Currently, there are no AI-generated video shorts suggestions available for this video.
startTimeInSeconds - $b->startTimeInSeconds; }); $countCols = 1; foreach ($responses as $key => $value) { $countCols++; ?>

endTimeInSeconds - $value->startTimeInSeconds); ?> shortTitle) ?>

'; } if (($countCols) % 3 == 0) { echo ''; } if (($countCols) % 2 == 0) { echo ''; } } ?>