“Health and care organisations and systems are continuing to face some of their greatest challenges, amidst severe financial pressure. That being said, we are optimistic about the future for all our public services. Across the country, we’re working alongside trusts and health and care systems to deliver change which tackles the intense pressures of today, whilst transforming for a brighter future.”
Robin Vickers, Partner
// Getting the video duration
$jsonUrl = "https://fast.wistia.com/embed/medias/" . $video_id . ".json";
// Fetch the JSON data
$jsonData = file_get_contents($jsonUrl);
// Decode the JSON data into a PHP associative array
$data = json_decode($jsonData, true);
// Access the 'duration' value within the 'media' key
$duration = $data['media']['duration'];
// Round the duration to the nearest second
$duration = round($duration);
// Convert the duration to minutes and seconds
$minutes = floor($duration / 60);
$seconds = $duration % 60;
// Format the minutes and seconds to ensure two digits
$formattedDuration = sprintf('%02d:%02d', $minutes, $seconds);
?>