Log in

View Full Version : Embedding MP4 Files into Webpage


Dustin013
29th May 2008, 22:24
I have been encoding some files in MP4 for use with the IPhone using FFMPEG. The videos I have encoded look great on the IPhone and great in Quicktime and VLC. However, I am trying to embed the encodes into a webpage here on my local network. I simply have a little program that scans my encode directory and displays the paths of the files. My goal is to get them to play via the browser. However, all of the browser code I have played with online doesn't show any video :(

Again, works great in Quicktime Player but not the browser plugin. I am using Apache to serve the files on my local network.

Here is an example of some of the source code I have tried...

<html>
<head>
<title>StarTrek.Voyager.5x02.mp4</title>
</head>
<body>


<OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"

CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"

HEIGHT=480

WIDTH=640

>



<PARAM NAME="src" VALUE="test.mp4" >



<EMBED SRC="http://localhost/test/test.mp4"

HEIGHT=480 WIDTH=640

TYPE="video/quicktime"

PLUGINSPAGE="http://www.apple.com/quicktime/download/"

/>


</body>
</html>

Any Suggestions?