26.Video Trong HTML

Embed Size (px)

Citation preview

  • 8/14/2019 26.Video Trong HTML

    1/4

    BI 26 NGY 7.9.2006 SON THEO KS L MINH PHNGI.NHP NI DUNG DI Y VO NOTEPAD :TAG : A HREF trc y thng s dng : Xem File video.html Nhp lny xem on video clip : on ny c ly Trong D vi ngdn sau y : D:\CANON Video Clip\100-0005_mvi.avi

    Khi nhp ln n t ng c chuyn sang my tnh ca bn v autoplay.C nhng TAG c s dng gn y : Xem File Video1.htmlTAG : Nhp ln y xem on video clip : on ny c ly Trong D ving dn sau y : D:\CANON Video Clip\100-0005_mvi.avi

    Hour 16: Embedding Multimedia in Web Pages

    1

  • 8/14/2019 26.Video Trong HTML

    2/4

    Tags and Attributes View Hour 16 Examples

    Embeds a file to be read or displayed by a Netscape plug-in or

    helper application. (This tag is supported by both Microsoft and

    Netscape browsers, but is not part of the official HTML standard.)

    SRC="..." The URL of the file to embed.

    WIDTH="..." The width of the embedded object in pixels.

    HEIGHT="..." The height of the embedded object in pixels.

    ALIGN="..."Determines the alignment of the media window. Values are the same

    as for the tag.

    VSPACE="..." The space between the media and the text above or below it.

    HSPACE="..." The space between the media and the text to its left or right.

    BORDER="..." Draws a border of the specified size in pixels around the media.

    ...

    Alternate text or images to be shown to users who do not have a

    plug-in installed or are using browsers that don't recognize the

    tag. (Not part of the official HTML standard.)

    ...Inserts images, videos, Java applets, ActiveX controls, or other

    objects into a document. (See Hour 17 for attributes.)

    Hour 16:Embedding Multimedia in Web Pages

    http://24hourhtmlcafe.com/hour16/index.htm

    In this hour, you learn how to embed video and sound into a Web page using the non-standard

    tag. (Its officially sanctioned successor, the tag, does not yet function reliably

    in any available Web browser.) These tags can be used to include a vast array of media types,

    including besides just AVI and MIDI files. Some of these media types are alternative audio and video

    formats that aim to achieve greater compression, quality, or compatibility than the Windows standard

    formats. Others, such as Shockwave and QuickTime VR, add a variety of interactive features that old-

    fashioned audiovisual media types lack.

    (View HTML tags covered in Hour 16.)

    Example Pages Shown in the Book

    Music(Figures 16.1 - 16.2)

    2

    http://24hourhtmlcafe.com/hour16/index.htmhttp://24hourhtmlcafe.com/htmltags.htm#hour17http://24hourhtmlcafe.com/htmltags.htm#hour16http://24hourhtmlcafe.com/hour16/sound.htmhttp://24hourhtmlcafe.com/index.htmhttp://24hourhtmlcafe.com/hour16/index.htmhttp://24hourhtmlcafe.com/htmltags.htm#hour17http://24hourhtmlcafe.com/htmltags.htm#hour16http://24hourhtmlcafe.com/hour16/sound.htm
  • 8/14/2019 26.Video Trong HTML

    3/4

    Even though the is not part of the HTML standard, it is currently the easiest reliable way

    to embed media files for both Netscape and Microsoft browsers.

    Fractal Video Clip(Figures 16.3 - 16.5)

    You can embed a video into a Web page with the same tag used to embed

    sound. The tag in this example also includes the AUTOSTARTand LOOP attributes, which tell Netscape and Microsoft's media players to

    start playing the video when the page loads, and to repeat it over and over

    again as long as the page is being displayed.

    Additional Online Examples

    The Downeast Restaurant

    Use the tag only for short sounds that don't repeat. For videos

    and background music, you'll avoid annoying a lot of people by offering a

    good old fashioned link to the media file instead of embedding

    it.

    Key Quote from This Hour

    "In this hour's sample pages, I use Windows AVI video and MIDI sound files. For better compatibility

    with non-Windows computers, you could use Apple's QuickTime audio/video, the Real Audio/Real

    Video, format or any other video format supported by today's Web browsers. The procedures shown

    in this hour for incorporating the files into your Web pages are the same, no matter which file formatyou choose."

    Next Hour: Interactive Pages with Applets and ActiveX

    II.NHP NI DUNG NY VO NOTEPAD : Xem File video3.html

    Fractal Video Clip

    A Spinning 3-D FractalIf the video clip to the left doesn't start on its own,click on it to make it play. Once it starts, you can

    right-click on it and choose Pause to make it stop.

    KT QU : Bn Down v xem Video Clip ny :3

    http://24hourhtmlcafe.com/hour16/video1.htmhttp://24hourhtmlcafe.com/hour16/downeast.htmhttp://24hourhtmlcafe.com/hour17/index.htmhttp://24hourhtmlcafe.com/hour16/video1.htmhttp://24hourhtmlcafe.com/hour16/downeast.htmhttp://24hourhtmlcafe.com/hour17/index.htm
  • 8/14/2019 26.Video Trong HTML

    4/4

    III.GII THCH : Quick Time l nh dng Video ph bin nht vi nhng ngi dng

    Macintosh. Quick Time Player thch hp cho Window , tng t nh AVI ,WAV MPEG 1 l video hiu qu nht cho vic truyn ti qua Internet. MPEP 3 ph bin do cht lng m thanh , File nn MP4 File cc nn hin nay , in hnh cc bn nhc Karaoke dc thay i

    nn hnh lin tc , cc da DVD c trn 6 gi Play. Nu cn tng thch nn , nn xem dng ReaL Video hay Real Audio.Ti n

    t : www.real.com mi c th xem dng ny. Vit HTML nhng 1 File Video sao cho c ngi dng Microsoft v

    Netscape u c th xem thy n :