Forum Moderators: not2easy
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.
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[0] = '1.wmv'
playlist[1] = '1.wmv'
playlist[2] = '3.wmv'
playlist[3] = '4.wmv'
// Find the length of thr array
var arrayLen = playlist.length;
// Get a random number
var randomMovie = Math.round(Math.random()*(arrayLen-1));
function renderMovie(){
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
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.