Let's take the ID information required to play with video links from popular video sites (Youtube, Google Drive, Facebook, Vimeo, Dailymotion, Ok.ru, Twitch), and create embed code and let you use the videos anywhere you want.
https://www.mucahittopal.com/php-ile-video-sitelerinden-id-alma-ve-oynatma-fonksiyonu.html