database - How to play a video without embedded code in html? -


i've got webpage works mysqli db (this private website our company , not global). now, want upload videos on server (and not on db) , put links on website. now, here question: how can make browser open windows media player (after clicking on each link user) , play video on computer, , not on browser?? matter of fact, not want browser show videos users, want each user watch videos windows media player on computers.

i think simple should work in html

<a href="/videos/your-video.mp4">video link</a> 

i video should download, depending on users prefrences video may open after finished downloading... can't force this

if want stream embed should work:

<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.yoursite.com/your-video.wmv">   <param name='animationatstart' value='true'>   <param name='transparentatstart' value='true'>   <param name='autostart' value="false">   <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.yoursite.com/your-video.wmv" autostart="true" designtimesp='5311' loop="true">   </embed>   </object> 

note: better off using html5 tags , converting mp4 - not many people use windows media player these days


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

r - Update two sets of radiobuttons reactively - shiny -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -