Welcome to WebmasterWorld Guest from 184.108.40.206 , register , free tools , login , search , subscribe , help , library , announcements , recent posts , open posts Pubcon Platinum Sponsor
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 msg:848127 2:10 pm on Jun 21, 2006 (gmt 0) hi all.
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.
oxbaker msg:848128 7:45 pm on Jun 21, 2006 (gmt 0)
why not use flash? they wont be able to download them if they are in flash.
obwez msg:848129 4:23 pm on Jul 1, 2006 (gmt 0)
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
Capt_Quirk msg:3647570 12:40 am on May 12, 2008 (gmt 0)
Could somebody explain how I would use the above script? I'm not very code friendly. thecoalman msg:3647583 1:33 am on May 12, 2008 (gmt 0)
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.
Capt_Quirk msg:3647588 1:43 am on May 12, 2008 (gmt 0)
I'm not concerned with people taking the video, I just want to make it randomly play a library of wmv videos.