dimanche 19 avril 2015

How to hidden video url in asp.net mvc

I build a website on asp.net mvc 4. In this website, i will play video on youtube with link get from youtube, and I using jwplayer to play video.





<script>
jwplayer("box-live").setup(
{
file: "http://ift.tt/1Q5xAPf",
title: "CHAYDAN.COM", width: '728', height: '440',
logo: {
link: 'http://chaydan.com',
//file: '/Content/themes/frontend/images/logo-chaydan-mini.png',
position: 'bottom.right',
hide: 'false',
margin: '-35',
linktarget: '_blank',
hide: 'false',
over: '10',
out: '0.75'
},
});
function loadVideo(myFile, myImage) {
jwplayer().load([{ file: myFile, image: myImage }]);
jwplayer().play();
}
</script>



In javascript video url always show and end user can view source website to get video url. I don't users to be able to get this url.


How to fix it.


Thanks.


Aucun commentaire:

Enregistrer un commentaire