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 6 of 6
  1. #1
    Regular Coder
    Join Date
    May 2012
    Posts
    140
    Thanks
    111
    Thanked 0 Times in 0 Posts

    Best video format for website (for PC's and Mac's) ?

    Well it's been a couple of days sinse I posted my question about embedding a video player on a website, with no responses, so I will ask a different question.

    If I do find a way to show my (hour long) .wmv formatted video on my website, will it be able to be viewed on a Mac?

    I am a novice to embedding videos, so I guess that is a good starting point.
    I appreciate any help.

  • #2
    Regular Coder
    Join Date
    May 2012
    Location
    USA
    Posts
    102
    Thanks
    0
    Thanked 7 Times in 7 Posts
    I prefer to choose .AVI or .MP4 video format for website.

  • Users who have thanked annaharris for this post:

    Eggweezer (05-11-2013)

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,454
    Thanks
    0
    Thanked 632 Times in 622 Posts
    For video to play native in all browsers that support it you will need mp4, webm and ogv formats as there are browsers that only support one of those three. Specify the source tags in that order inside the video tag to provide the best support (plus if you want to make sure of browsers that don't support the video tag then add a flash version in an object tag inside the video tag as well.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    Eggweezer (05-11-2013)

  • #4
    Regular Coder
    Join Date
    May 2012
    Posts
    140
    Thanks
    111
    Thanked 0 Times in 0 Posts
    Hello felgall,

    Thank you. Here is what I am really trying to accomplish, and just wanted to see if you (or anyone) could suggest how to accomplish this.

    What I would really like to be able to do would be to be able to create a Flash swf for a website header.

    1) I realize of course that Macs do not display swf's, so I know I obviously will need to convert my swf to a movie of some sort (MP4?).

    2) Then.... I need to be able to stream that movie (so it does not have to completely load) before it starts to play.

    3) Finally, I would also need it to play without a "play" button (although I imagine the code would allow for autoplay).

    Boy, if you or anyone could steer me in a direction, I would really appreciate it. Thank you in advance.

  • #5
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,454
    Thanks
    0
    Thanked 632 Times in 622 Posts
    See http://www.felgall.com/html5u1.htm - at the bottom of the page is example code of how to attach all the different video file formats so that the browser will display the video using whichever one it understands.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • Users who have thanked felgall for this post:

    Eggweezer (05-12-2013)

  • #6
    Regular Coder
    Join Date
    May 2012
    Posts
    140
    Thanks
    111
    Thanked 0 Times in 0 Posts
    Awesome felgall. I will review it this evening.
    Thank you very much!


  •  

    Posting Permissions

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