Re: [mel] Cannot get mp4 file to display
Hi Mel,
Sorry that I didn't see this earlier.
Try uploading the test video to a folder on your site (I called it presentations and called the file videotest.mp4). Once you get the video playing as it should, then replace the code with a foreach loop and a call to the upload.
Here's some code from a working mp4 video page that you can compare with yours. (don't forget to upload both the jwplayer.js and the player.swf files to your site and change the path to them as required.
In the Head:
<script type="text/javascript" src="jwplayer.js"></script>
And in the body to show the video.
<table align="center"><tr>
<td>
<div align="center">
<!-- Simple jwplayer "modes" implementation to try html5 first -->
<div id="container"> </div>
<script type="text/javascript">
jwplayer("container").setup({
file: "presentations/videotest.mp4",
height: 450,
width: 563,
image: "presentations/placeholder.jpg",
autostart: true,
modes: [
{ type: "html5" },
{ type: "flash", src: "player.swf" }
]
});
</script>
</div>
</td>
</tr>
</table>
There's a lot more on embedding video in a web page in my CMSB Cookbook
http://www.thecmsbcookbook.comHope that helps.
Jerry Kornbluth
The first CMS Builder reference book is now available on-line!
Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php