longtone Posted April 23, 2009 Share Posted April 23, 2009 I am building a webpage to be used only on one local computer. I want to embed video, and I am using the following code: <object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" standby="Loading Windows Media Player components…" type="application/x-oleobject" > <param name="filename" value="03.wmv"> <param name="Showcontrols" value="True"> <param name="autoStart" value="True"> <embed type="application/x-mplayer2" src="03.wmv" name="MediaPlayer" width=320 height=286></embed> </object> but it says it can't find the file. I can open 03.wmv in windows media player, so I know it's there. Am I specifying the file path wrongly? Quote Link to comment https://forums.phpfreaks.com/topic/155420-solved-embed-in-web-page-on-local-computer-cant-find-file-path/ Share on other sites More sharing options...
jackpf Posted April 23, 2009 Share Posted April 23, 2009 You could try giving it an absolute path (http://localhost/files/file.wmv) or whatever. It may not be being called from where you expect it to be. Quote Link to comment https://forums.phpfreaks.com/topic/155420-solved-embed-in-web-page-on-local-computer-cant-find-file-path/#findComment-817847 Share on other sites More sharing options...
longtone Posted April 23, 2009 Author Share Posted April 23, 2009 Yes, that's done it Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/155420-solved-embed-in-web-page-on-local-computer-cant-find-file-path/#findComment-817855 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.