What are the alternatives to using YouTube's video player for embedding videos on a website?

One alternative to using YouTube's video player for embedding videos on a website is to use a custom HTML5 video player. This allows for more control over the appearance and functionality of the video player on your website. Another option is to use a third-party video hosting service like Vimeo or Wistia, which offer different customization options and features compared to YouTube.

<?php
echo '<video controls>';
echo '<source src="video.mp4" type="video/mp4">';
echo 'Your browser does not support the video tag.';
echo '</video>';
?>