Welcome to WebmasterWorld Guest from 18.104.22.168 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor 2014
Help Needed for Playing Random Videos on webpage Actually i want to make a website on which any media player(say wmp) runs m mp3mechanical
Actually i want to make a website on which any media player(say wmp) runs my videos randomly from a playlist so that people cant download video files but can only watch them as they appears randomly.
or any other way to have static playlist files (http:// .. .. /playlist.asx) which runs all media files in any folder Randomly with encrypting files location.
Please Help me & suggest me a better way to do it.
Thanks in Advance for Your Help.
why not use flash? they wont be able to download them if they are in flash.
I have just knocked this up for you on this site, because it's easy.
Link your html file to my randomMovie.js, define the items for your array and then simply call it with renderMovie() somewhere between the body tags.
// ************ Start of randomMovie.js *************
// Our playlist array.
playlist = '1.wmv' playlist = '1.wmv' playlist = '3.wmv' playlist = '4.wmv'
// Find the length of thr array
var arrayLen = playlist.length;
// Get a random number
var randomMovie = Math.round(Math.random()*(arrayLen-1));
document.writeln('<OBJECT id="VIDEO" width="320" height="240"');
document.writeln('CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"'); document.writeln('type="application/x-oleobject">'); document.writeln('<PARAM NAME="URL" VALUE="'+ playlist[randomMovie] +'">'); document.writeln('<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">'); document.writeln('<PARAM NAME="AutoStart" VALUE="True">'); document.writeln('<PARAM name="uiMode" value="none">'); document.writeln('<PARAM name="PlayCount" value="9999">'); document.writeln('</OBJECT>');
// ************ End of randomMovie.js *************
anything else let me know
Could somebody explain how I would use the above script? I'm not very code friendly. thecoalman
If it can be seen, read or viewed it can be copied. At most you can expect to stop or slow down the non-technical user.
I know that doesn't answer your question but truthfully it's a futile effort. What you want to do would require URL rewriting and server side scripting, the crux of the problem is you're going to be serving the video to client. It can be saved using a variety of tools at that point.
I'm not concerned with people taking the video, I just want to make it randomly play a library of wmv videos.