UrlPlayer
UrlPlayer copied to clipboard
This is not a issue but a suggestion to add clickable links to play with your great script
I add clickable links at the bottom of your script to play with many Videos aud audio format.
- Play .MP4
- Play .M4V
- Play .MP3
- Play .MPD Streaming
- Play Manifest
- Play .webm
- Show .JPEG
- Play .m3u8 streaming
- Play .MOV
`$(function(){ $('.vidlink a').click(function(e){
e.preventDefault();
if (player.session == null) {
return;
}
var url = decodeURIComponent($(this).attr('href'));
var contentType = getContentType(url);
player.loadMedia(url, contentType);
$('#player_now_playing').html(url.split(/[\\/]/).pop());
$('#controls').show();
/*temporaire*/
$('#url').val(url);
}); });`