Science Library - free educational site

Audio-Visual and Scripts

Video

HTML5 provides a video element for embedding videos on a webpage:

<video width="400" height="300" controls>

<source src="video_demo.mp4" type="video/mp4">

<source src="video_demo.ogg" type="video/ogg">

Your browser version is not video tag compliant.

</video>

controls and autoplay add those functions. Any text within the video tags only displays if a video could not be found or played.

Supported video formats: MP4 (all browsers) video/mp4. WebM (video/webm) and Ogg (video/ogg) are not supported by Explorer or Safari.

If browsers do not support HTML5, there are alternatives for displaying a video as an object:

<object data="video_demo.mp4" width="240" height="330" title="Example video" >

</object>

or embedding the video:

<embed src="video_demo.mp4" height="330" width="240" title="Example video" autostart="autostart" >

Audio

HTML5 provides an audio element for embedding audio files on a webpage:

<audio controls>

<source src="audio_demo.mp3" type="audio/ogg">

<source src="audio_demo.ogg" type="audio/mpeg">

Your browser does not support the audio element.

</audio>

Currently (Jan 2015), only mp3 is supported by all browsers.

Content © Renewable-Media.com. All rights reserved. Created : November 6, 2014 Last updated :February 27, 2016

Latest Item on Science Library:

The most recent article is:

Trigonometry

View this item in the topic:

Vectors and Trigonometry

and many more articles in the subject:

Subject of the Week

Environment

Environmental Science is the most important of all sciences. As the world enters a phase of climate change, unprecedented biodiversity loss, pollution and human population growth, the management of our environment is vital for our futures. Learn about Environmental Science on ScienceLibrary.info.

Environmental Science

Great Scientists

Linus Pauling

1901 - 1994

Linus Pauling is the only person in history to have won two unshared Nobel Prizes (Chemistry 1954, Peace 1962). He is considered one of the greatest scientists and humanitarians ever, and his fields of activity were widespread.

Linus Pauling
IT Forum by Sean Bone

Quote of the day...

The next morning began with a brief series of howl screeches, acoustically representing the dying moments of the entrance gate hinges. Considering the gate was not even closed, let alone locked, it would be safe to say whoever they were, these were not your run of the mill guests. Not that I am suggesting guests should be allowed to run the mill.

ZumGuy Internet Promotions

SaraOrdine