This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Displaying an .mp4 file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Displaying an .mp4 file" Watch "Displaying an .mp4 file" New topic
Author

Displaying an .mp4 file

Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 86
Hello Everyone,

I am a Java programmer and I am trying to post some clips of my coding/animations finished programs on my web-site. I tried posting an swf file but the quality was substandard and decided to go with an mp4 file instead. Now, IE explorer will not display the HTML5 video ( kind of want to include IE in my choice of display) and my older code is specifically for an swf player. Can someone PLEASE refer me to something that will undoubtedly work for such a task. Again it is an mp4 file were talking about here... and it is going on my site!!!
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60740
    
  65

To cover all browsers, you will need multiple video formats as there is no one format that all browsers support.

A good rundown can be found here.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Joe Ridener
Ranch Hand

Joined: Jul 16, 2012
Posts: 86
Bear Bibeault wrote:To cover all browsers, you will need multiple video formats as there is no one format that all browsers support.

A good rundown can be found here.


Thank you,

I could not get the Object param tags to work properly. Could you or someone recomend a good code for the .mp4 files as they are great samples of my Java work?
Rob Crowther
author
Ranch Hand

Joined: Nov 06, 2012
Posts: 295
    
    5

What object param tags? Why are you not using the <video> element?


Read my books: Hello! HTML5 & CSS3 | HTML5 in Action | Read my blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying an .mp4 file
 
Similar Threads
How to display swf in struts dynamically?
WebSphere MIME type(video/mp4) under Windows Server 2003(IIS 7.5):video not playing iPhone/android
how I may copy swf components in JSP Pages, and use in my website..
URL-Pattern, Internet Explorer and Flash Videos
.swf file is not loaded in my machine