Video and Audio add to Website


  1. Posts : 713
    Windows 7 Pro
       #1

    Video and Audio add to Website


    I am using Dreamweaver 8 to put Video and Audio onto a website. When I do that it test great in Dreamweaver but when I upload the site to my server, it does NOT play; don't much of anything. Certainly does NOT play the video or audio.

    Does anyone have the codes to embed video or audio to a website? I have some but they NO longer work. Thanks for help.
      My Computer


  2. Posts : 329
    W10 Pro x64, W7 Pro x64 in VMware
       #2

    Have you uploaded the video + audio to the server and linked correctly ? You might just be referencing local files.
      My Computer


  3. Posts : 713
    Windows 7 Pro
    Thread Starter
       #3

    Dreamweaver creates all the code needed to play the video or audio. When I look at the source code in IE it looks the same as that in Dreamweaver which tests like it should.
    Yes I did upload the code and the audio or video file.
      My Computer


  4. Posts : 2,468
    Windows 7 Ultimate x64
       #4

    Look at the specifications of the HTML5 tags:
    HTML5 Video
    HTML audio tag

    Those should provide with a reasonable reference to check your code. Also look at the browser compatibility tables, a very likely cause is that your real browser don't support the format but the test environment does. That's the most common issue with HTML5 multimedia, and is partially mitigated by providing multiple formats so the browser picks the one it understands.
    You could also test the HTML files directly from your computer opening in various browsers before uploading.

    I'm assuming you're using HTML5 here, but if that's not the case and you're using Flash (which is the most common option, actually), make sure you upload the .swf file in addition to the media files.
      My Computer


  5. Posts : 713
    Windows 7 Pro
    Thread Starter
       #5

    Thanks Alejandro85

    I had looked at those before but I am not sure if I tried those codes or not. The reason being I am not sure about the code. Such as:

    <source src="movie.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">

    I don't have a clue why the type="video/mp4" is needed or line
    <source src="movie.ogg" type="video/ogg"> is even needed at all.

    I did look at the source codes for those pages and yes it has all that code and it works for that site.

    I guess I will have to just work thru it. It used to be so easy and now they have complicated it to much.
      My Computer


  6. Posts : 2,468
    Windows 7 Ultimate x64
       #6

    Those lines are what tell the browser what is the actual video to play, it's of utmost importance. The type is an hint for the media type, helping the browser to decide is it's capable of displaying it or not.

    Post the whole relevant piece of code. Otherwise it's just guessing. It could be a typo, a missing file, browser incompatibility or pretty much anything.
      My Computer


  7. Posts : 713
    Windows 7 Pro
    Thread Starter
       #7

    OK I finally got the audio to work on a website. Here is the link:

    http://www.geos.byethost16.com/music...ml?ckattempt=1

    I am NOT crazy about the controls but they are better than nothing.

    I am still working on the video code and will let you know how that goes.
      My Computer


  8. Posts : 713
    Windows 7 Pro
    Thread Starter
       #8

    OK now I got the Video to work, but still do NOT like the controls but can live with them I guess until I can find something better.

    Here is the link to the movie.

    http://www.geos.byethost16.com/movie...ml?ckattempt=1

    If anyone comes up with code with other controls I would love to try them. Thanks
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 01:23.
Find Us