New media tags in HTML5

New media tags in HTML5

Some new media elements were intoduced in HTML5 where the developer can simply plug and play the media elements by simply using the below tags

<audio> Defines sound content

<video> Defines a video or movie

<source> Defines multiple media resources for <video> and <audio>

<embed> Defines a container for an external application or interactive content (a plug-in)

<track> Defines text tracks for <video> and <audio>

9 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

Try share the code with us

Ahmedelshfie

may i know what kind of codes you need. can you please tell in detail

<audio src="audio/sample.mp3" autoplay> </audio>

or

play a simple song

<audio controls>
  <source src="horse.ogg" type="audio/ogg">
  <source src="horse.mp3" type="audio/mpeg">
  Your browser does not support the audio tag.
</audio>

or

<audio src="data:audio/mpeg,ID3%02%00%00%00%00%..." autoplay> </audio>

well, could you explain more clearly

Ahmedelshfie

no ! cant give more detail than this post

can you give an example for tag <embed>

example for embed tag <embed src="ponram_workout.swf">

Some of parameters that can be used along with <embed>

height - Specifies the height of the embedded content

src - Specifies the address of the external file to embed

type - Specifies the MIME type of the embedded content

width - Specifies the width of the embedded content

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui