Skip to content

Commit

Permalink
Quick typos fix in README, added LICENSE file.
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Mar 15, 2010
1 parent 9774b81 commit 4b5321a
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 10 deletions.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
The MIT License

Copyright (c) 2010 Nathan Rajlich

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
20 changes: 10 additions & 10 deletions README.md
@@ -1,22 +1,22 @@
HtmlMediaFallback
=================
HtmlMedia
=========

Presenting the first and only "proper"
[HTML5 <audio> and <video>](http://www.w3.org/TR/html5/video.html) fallback
implementation: `HtmlMediaFallback`
[HTML5 &lt;audio&gt; and &lt;video&gt;](http://www.w3.org/TR/html5/video.html) fallback
implementation: `HtmlMedia`

There are a few open-source HTML5 Video and Audio fallbacks that depend on
Flash out there, but in-short, all were too heavy-weight AND not complete
enough for my needs.

`HtmlMediaFallback` was created with the term "progressive enhancement" in
`HtmlMedia` was created with the term "progressive enhancement" in
mind. The sad truth is that HTML5 isn't even finalized yet. None of the
current browser's implementations have a uniform codec support, and Internet
Explorer doesn't support it at all! This script aims to provide an
implementation of the HTML5 media API, with a uniform, cross-browser codec
implementation of the HTML5 media API, with a uniform, cross-browser codec set
support via Flash, upgrading the browser's current implementation if one exists.

The `HtmlMediaFallback` script should:
The `HtmlMedia` script should:

* If no HTML5 media support is detected, implement the interfaces related to
the <audio> and <video> element (HTMLMediaElement, HTMLAudioElement, etc.)
Expand Down Expand Up @@ -58,9 +58,9 @@ implementation, then those are obviously still supported as well.
How to Use
----------

`HtmlMediaFallback` was designed to be a drop-in enhancement, with little
`HtmlMedia` was designed to be a drop-in enhancement, with little
or no configuration required by the developer. Here's a minimal HTML file,
with guaranteed HTML5 media support via `HtmlMediaFallback`:
with guaranteed HTML5 media support via `HtmlMedia`:

<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -93,7 +93,7 @@ or
setTimeout("a.pause()", 1000);
// pause the sound in 1 second

You now have full access to the [HTML5 <audio> and <video>](http://www.w3.org/TR/html5/video.html)
You now have full access to the [HTML5 &lt;audio&gt; and &lt;video&gt;](http://www.w3.org/TR/html5/video.html)
API on your webpage, with a guaranteed codec set, and an implementation for
old/non-supporting browsers.

Expand Down

0 comments on commit 4b5321a

Please sign in to comment.