Watch Online
Join us online every Sunday or catch up on our Recent Services! Watch LiveRecorded ServicesWatch
Next Live Stream Service
Sunday April 10, 2022 @ 10:30 am (Palm Sunday Service) & a 5:00 pm (Ordination Service)
getMessage();
}
// The method which finds the video ID
function getLiveVideoID($channelId)
{
$videoId = null;
// Fetch the livestream page
if($data = file_get_contents('https://www.youtube.com/embed/live_stream?channel='.$channelId))
{
// Find the video ID in there
if(preg_match('/\'VIDEO_ID\': \"(.*?)\"/', $data, $matches))
$videoId = $matches[1];
else
throw new Exception('Couldn\'t find video ID');
}
else
throw new Exception('Couldn\'t fetch data');
return $videoId;
}
?>