Sounds like you're looking for
oEmbed[
^] - so long as the site supports an oEmbed API, you can pass it a link to a video and it will return the markup required to display that video.
There's
a jQuery wrapper[
^] which will convert a list of links into embedded players:
<div><a href="http://www.youtube.com/v/ITswHbJPHhQ?fs=1&hl=en_US&rel=0" class="oembed">YouTube Video</a></div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="jquery.oembed.js"></script>
<script>
$(function() {
$("a.oembed").oembed();
});
</script>
Alternatively, you could use a server-side solution such as
OptionStrict.oEmbed[
^] to generate the markup on the server.