What are the differences between HTML, JavaScript, and PHP in the context of embedding media players on a website?

When embedding media players on a website, HTML is used to structure the content and layout of the webpage, JavaScript is used to add interactivity and functionality to the media player, and PHP can be used to dynamically generate or retrieve media content from a database.

<?php
// PHP code to dynamically generate media player content
$mediaFile = "example.mp4";
echo "<video controls>";
echo "<source src='$mediaFile' type='video/mp4'>";
echo "Your browser does not support the video tag.";
echo "</video>";
?>