Tạo file javascript Play MP4:
Title * : Play MP4
Placement : In the topic
Javascript Code * :
Hoặc:
Title * : Play MP4
Placement : In the topic
Javascript Code * :
- Code:
$(function(){
$('a[href$=".mp4"]').replaceWith(function(){
return '<video src="' + this.href + '"></video>';
});
});
Hoặc:
- Code:
$(function(){
$('a[href$=".mp4"]').replaceWith(function(){
return '<video controls="" name="media"><source src="' + this.href + '" type="video/mp4"></video>';
});
});
Nguồn: DEVs