Support de Daylimotion

This commit is contained in:
galaxyoyo 2019-09-21 17:48:49 +02:00
parent 94345ae9a5
commit ac48412f7e
1 changed files with 4 additions and 0 deletions

View File

@ -180,4 +180,8 @@ function displayVideo($link)
echo "<center><iframe src=\"https://player.vimeo.com/video/$code?color=3be6c3\" width=\"853\" height=\"480\" frameborder=\"0\" allow=\"autoplay; fullscreen\" allowfullscreen></iframe></center>";
}
elseif (preg_match("#(https?\://|)(www\.|)dailymotion\.com/video/(.*)#", $link, $matches)) {
$code = $matches[3];
echo "<center><iframe frameborder=\"0\" width=\"853\" height=\"480\" src=\"https://www.dailymotion.com/embed/video/$code\" allowfullscreen allow=\"autoplay\"></iframe></center>";
}
}