donwalsh Posted March 23, 2007 Posted March 23, 2007 Hi I would like to add a feature where you can view say 5 seconds of a movie. If you then decide to buy it you pay to down load how can I accomplish this, Can any one point me in the right direction? Much appreciated Please email me a [email protected]
Ausgirl Posted March 24, 2007 Posted March 24, 2007 You can try this if there is nothing in the contributions, I have not tried this so make sure you back up before you have a go. You will have to change the links from YOUR SITE to the name of your site. I cant remember the exact web addy to get this from but it was posted here in the forum somewhere cause thats where I got it from. Try doing a search in the forum and you might find it. To put a video on your site: Code is: Paste the following HTML to embed your WindowsMedia file... <?> Copy & paste the following... <!-- begin embedded WindowsMedia file... --> <table border='0' cellpadding='0' align="left"> <tr><td> <OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' value="http://www.YOUR SITE.com/path/to/media.file"> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value="true"> <param name='showControls' value="true"> <param name='loop' value="true"> <EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285" src="http://www.YOUR SITE.com/path/to/media.file" autostart="true" designtimesp='5311' loop="true"> </EMBED> </OBJECT> </td></tr> <!-- ...end embedded WindowsMedia file --> <!-- begin link to launch external media player... --> <tr><td align='center'> <a href="http://www.YOUR SITE.com/path/to/media.file" style='font-size: 85%;' target='_blank'>Launch in external player</a> <!-- ...end link to launch external media player... --> </td></tr> </table>
vasttech Posted March 24, 2007 Posted March 24, 2007 the code above will place a media player on the page; however, it will play the whole file not a segment (i.e. just 5 seconds). As far as I know there is no real way to do it unless you get into some intricate coding where you play the movie through a flash file that controls the time. Otherwise, I could look at the source for that particular page, grab the link to your file from the code, and download the whole file without ever paying a dime. :) If you did it through a flash player you could hide the location of the actual file, and use actionscript to only play a portion of the movie. But that is a little off topic for this board. osCommerce Knowledge Base osCommerce Documentation Contributions
Recommended Posts
Archived
This topic is now archived and is closed to further replies.