PHP Script Video Player
Given PHP script example below allows you to play an embedded video, convert a link (particularly YouTube) to the official player video. And also a link where you can just download something like them easily…
Something like this could work:
var ytLink = "http://www.youtube.com/watch?v=oHg5SJYRHA0";
var ytKey = ytLink.substr(ytLink.lastIndexOf("v=") + 2, 11);
var isValid = ytKey.length == 11;
if(isValid){
var myFrame = "<iframe width='560' height='315' src='http://www.youtube.com/watch?v="+ytKey+"' frameborder='0' allowfullscreen></iframe>";
}
var ytKey = ytLink.substr(ytLink.lastIndexOf("v=") + 2, 11);
var isValid = ytKey.length == 11;
if(isValid){
var myFrame = "<iframe width='560' height='315' src='http://www.youtube.com/watch?v="+ytKey+"' frameborder='0' allowfullscreen></iframe>";
}
See ‘Get YouTube Key’ Snippet
If you want something that can do DailyMotion, Vimeo, etc..
Try this link. Perfect and free to use for non-commercial use.