Page 122 - HTML5
P. 122

Chapter 28: Media Elements


        Parameters


          Attribute   Details


          width       Sets the element's width in pixels.

          height      Sets the element's height in pixels.


          <source>    Defines resources of the audio or video files

          track       Defines the text track for media elements


          controls    Displays controls

          autoplay    Automatically start playing the media


          loop        Plays the media in a repeated cycle


          muted       Plays the media without sound

          poster      Assigns an image to display until a video is loaded



        Remarks

        Support in browsers


                                                         Firefox       Internet
          Feature                            Chrome                                     Opera       Safari
                                                         (Gecko)       Explorer

          Basic support                      3.0         3.5 (1.9.1)   9.0              10.50       3.1

          <audio>: PCM in WAVE               (Yes)       3.5 (1.9.1)   No support       10.50       3.1

          <audio>: Vorbis in WebM            (Yes)       4.0 (2.0)     No support       10.60       3.1

          <audio>: Streaming Vorbis/Opus     ?           36.0          ?                ?           ?
          in WebM via MSE


                                                                                                    No
          <audio>: Vorbis in Ogg             (Yes)       3.5 (1.9.1)   No support       10.50
                                                                                                    support
          <audio>: MP3                       (Yes)       (Yes)         9.0              (Yes)       3.1

          <audio>: MP3 in MP4                ?           ?             ?                ?           (Yes)

          <audio>: AAC in MP4                (Yes)       (Yes)         9.0              (Yes)       3.1

          <audio>: Opus in Ogg               27.0        15.0 (15.0)   ?                ?           ?

          <video>: VP8 and Vorbis in
                                             6.0         4.0 (2.0)     9.0              10.60       3.1
          WebM




        https://riptutorial.com/                                                                             106
   117   118   119   120   121   122   123   124   125   126   127