Video on web site


Results 1 to 14 of 14

Thread: Video on web site

  1. #1
    Join Date
    May 2000
    Location
    Tulsa, OK
    Posts
    369

    Video on web site

    I would like to post a video on my web site. I'd like for the viewer to be able to click on a play button and view the video directly on the site. I don't want them to have to rely on an external video player such as Real Player or Caffeine or WMP.

    What would it take to accomplish this task assuming I already have the video in a digital format?
    Linux is more friggin' addictive than caffeine.

    Confidence is what you feel when you do not truly understand the situation (or question).

  2. #2
    Join Date
    Sep 1999
    Posts
    3,203
    Nothing. Browsers aren't capable of playing video, and will need a plugin. That being said, convert your video to a common format with a common codec - mpeg would probably do it.

  3. #3
    Join Date
    Nov 2005
    Posts
    2

    Video

    Try this:

    <embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>

  4. #4
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,947
    Quote Originally Posted by ocmnet
    Try this:

    <embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>
    Which will only work if your browser has a plugin that understands whatever MIME-type your web server sends for "myvideo.avi", and also understands all the extra attributes that you've put in here.

    My guess is this will only work in IE, on Windows.

  5. #5
    Join Date
    Dec 2002
    Location
    Seattle, WA USA
    Posts
    797
    Thats actually the preferred command for Netscape/Mozilla. It will work in in any popular browser, and a recent version of IE. Older versions of IE request an IE-specific tag.
    Install the Justlinux.com search plugin for Mozilla/Firefox!

    G4L: Your best friend and your worst enemy
    Distrowatch: (Nearly) Complete profile listing of popular Linux distributions
    Lest you want a tonguelashing, Read the posting guidelines first
    Jabber: creepyt at jabber.org IRC: #justlinux
    Now 100% MSTD free! Enjoy the onslaught of Microsoft transmitted diseases, suckers!

  6. #6
    Join Date
    May 2000
    Location
    Tulsa, OK
    Posts
    369
    Ok, so if I use this:

    <embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>
    How can I provide the viewer with stop, start and pause buttons?
    Linux is more friggin' addictive than caffeine.

    Confidence is what you feel when you do not truly understand the situation (or question).

  7. #7
    Join Date
    Apr 2001
    Location
    SF Bay Area, CA
    Posts
    14,947
    Quote Originally Posted by timothykaine
    It will work in in any popular browser,
    ... As long as that browser can display whatever MIME-type your web server sends for the .avi file. If the user doesn't have some AVI-playing plugin installed, their browser will display a large block saying "click here to get the plugin".

  8. #8
    Join Date
    Dec 2003
    Location
    COLORADO
    Posts
    439
    I will concure with bwkaz that the embed tag still relies on the media's mime type and the appropriate plugin installed. do a search for the w3c schools. the w3c has a lot of info and some tuts on useing certain code (it is the world wide web consortium)
    Be AWARE: gramaticle/spelling errors will happen
    ReX Productions
    Current Web Project
    Join Project Honey Pot

  9. #9
    Join Date
    Dec 2002
    Location
    Seattle, WA USA
    Posts
    797
    Quote Originally Posted by bwkaz
    ... As long as that browser can display whatever MIME-type your web server sends for the .avi file. If the user doesn't have some AVI-playing plugin installed, their browser will display a large block saying "click here to get the plugin".
    I thought that part went without saying. No media without a plugin. I was just making sure it was known that that command works in all recent browsers, not just Internet Explorer, and that its actually the least likely to accept the command (as all versions of all Mozilla browsers will handle that command).
    Install the Justlinux.com search plugin for Mozilla/Firefox!

    G4L: Your best friend and your worst enemy
    Distrowatch: (Nearly) Complete profile listing of popular Linux distributions
    Lest you want a tonguelashing, Read the posting guidelines first
    Jabber: creepyt at jabber.org IRC: #justlinux
    Now 100% MSTD free! Enjoy the onslaught of Microsoft transmitted diseases, suckers!

  10. #10
    Join Date
    May 2000
    Location
    Tulsa, OK
    Posts
    369
    Ok, so if I use this:



    <embed SRC="myvideo.avi" AUTOSTART=TRUE WIDTH=400 HEIGHT=300 ALIGN=ABSMIDDLE LOOP=FALSE>

    How can I provide the viewer with stop, start and pause buttons?
    Linux is more friggin' addictive than caffeine.

    Confidence is what you feel when you do not truly understand the situation (or question).

  11. #11
    Join Date
    May 2000
    Location
    Tulsa, OK
    Posts
    369
    How can I provide a nice looking frame for the video.

    How can I provide the viewer with stop, start and pause buttons?
    Linux is more friggin' addictive than caffeine.

    Confidence is what you feel when you do not truly understand the situation (or question).

  12. #12
    Join Date
    Mar 2003
    Location
    West Texas
    Posts
    586
    Frame: build it yourself out of HTML

    Control buttons: you don't supply, the video player does.

    google is your friend.

    www.w3schools.com
    JustLinux IRC Channel: irc.freenode.net #justlinux

  13. #13
    Join Date
    Jun 2002
    Location
    Jamaica Plain, MA
    Posts
    458
    flash or java?

  14. #14
    Join Date
    Mar 2003
    Location
    West Texas
    Posts
    586
    flash, yuck
    java, inconvenient way

    best to leave it to the player of the end user
    JustLinux IRC Channel: irc.freenode.net #justlinux

Posting Permissions

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