Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    QuickTime not playing mp4 in webpage

    The following code is supposed to play an mp4 movie in QuickTime on a web page. If I click on the file in Windows Explorer, it plays the file okay in IE or Firefox. But if I try to open it over the web, Firefox shows the big blue "Q" symbol of QuickTime and writes both the error messages, and IE displays a faded "Q" with a question mark over it. The Firefox Error Console shows no errors, warnings or messages.

    The one clue I have is that Safari's Error Console says "Failed to load resource: the server responded with a status of 404 (Not Found)" and gives the name of the video. But the path and name are both correct. And it's finding the css file in the css folder no problem.

    Code:
    		<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" type="image/x-macpaint" height="480" width="640">
    			<param name="src" value="test.mp4" /> 
    			<param name="autoplay" value="true" />
    			<param name="controller" value="true" />
    			object failed to play movie
    			<embed src="test.mp4" type="image/x-macpaint" pluginspage="http://www.apple.com/quicktime/download" height="480" width="640" autoplay="true controller="true">
    				Failed to embed
    			</embed>
    		</object>
    Currently I've got the type set to "image/x-macpaint" but it behaves just the same when type is set to "video/mp4". I also tried using the data attribute in the object tag instead of using a param tag to pass the src, but that didn't work either. Is it some strange problem with the internal structure of my file? I have tried it with other mp4s and have the same problem.

    I have also tested this in Opera and Chrome, and it doesn't work in either of those either.

    Any help or tips anyone can give me would be very much appreciated. I am testing this on a Dell PC running Windows XP SP3, Firefox 3.6.13 and IE 8. It also doesn't work at home on a Dell running Windows 7 and the same browsers.

    This is in a completely stripped down HTML file which I made for debugging this particular code. There is nothing else happening on the page at all.

    Please let me know of any other information that would be helpful.

    Thanks.

  • #2
    Regular Coder
    Join Date
    May 2009
    Posts
    425
    Thanks
    3
    Thanked 62 Times in 61 Posts
    Where is test.mp4 located relative to the file containing the html you posted?

    Try:
    PHP Code:
    <a href="test.mp4">TEST</a
    ...to see if you can download the file through that link. If not, you know for certain your path is wrong.

    And I would assume you'd always want the type to be "video/mp4" unless Apple says otherwise.

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    33
    Thanks
    0
    Thanked 1 Time in 1 Post
    Make sure you have provided the correct path, otherwise it will not show the file.

  • #4
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by tfburges View Post
    Where is test.mp4 located relative to the file containing the html you posted?

    Try:
    PHP Code:
    <a href="test.mp4">TEST</a
    ...to see if you can download the file through that link. If not, you know for certain your path is wrong.

    And I would assume you'd always want the type to be "video/mp4" unless Apple says otherwise.
    I tried this and I get an error 404 "the page cannot be found". But I also put in a link to a straight HTML file in the same directory (it's all in the same directory as this file) and that one pulls up okay. So maybe it's just mp4s that aren't getting returned/found?

  • #5
    Regular Coder
    Join Date
    Oct 2006
    Posts
    181
    Thanks
    1
    Thanked 6 Times in 6 Posts
    have you checked for case?

    is it called *.mp4 or *.MP4 ?

    is there an online version of the site we can see?
    Quote Originally Posted by Excavator
    write it for firefox then hack it for IE

  • #6
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thank you for your answer!

    The case is correct, as is the spelling of the file name and the path. You can access the page here:

    http://mcfarlandassociate.com/meivideos.html

    I have 2 new leads on this.

    1. The file needs to be "hinted" for streaming, which means it needs a new track added that facilitates dividing it up into appropriately sized pieces for web distribution. I'm looking for a free program that will add this hinting track, but haven't found one that works for me yet.

    2. Flash videos don't need hinting. I found a free utility that converted my mp4s to Flash (.flv), but I need code to dynamically change the movie in the flash player, or to dynamically rewrite the player to the web page with the requested movie in it.

    Any leads or thoughts will be welcome!

  • #7
    New Coder
    Join Date
    Dec 2010
    Posts
    49
    Thanks
    0
    Thanked 1 Time in 1 Post
    <embed src="your_mp4.mp4" width="300" height="40"></embed>

    just make sure that your mp4 song has been uploaded too and that your mp4 song is in the same folder.
    Learn how to create a Website with HTML www.htmltutorialtopics.com Free tutorials


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •