Mv Embed
(→Multiple source types) |
(added sample clip) |
||
| Line 1: | Line 1: | ||
| + | [[File:FolgersCoffe.ogv|thumb|320px|right|Sample Embed ogg file using mv_embed]] | ||
Mv_Embed is a javascript library for easy embedding of ogg theora/vorbis media with the html5 tag. You can use it like so: | Mv_Embed is a javascript library for easy embedding of ogg theora/vorbis media with the html5 tag. You can use it like so: | ||
<script type="text/javascript" src="http://metavid.org/w/js2/mwEmbed/mv_embed.js"></script> | <script type="text/javascript" src="http://metavid.org/w/js2/mwEmbed/mv_embed.js"></script> | ||
... | ... | ||
<video src="mymovie.ogg"> | <video src="mymovie.ogg"> | ||
| + | |||
mv_embed will then rewrite the video tag to whatever playback method is available on the client be it native support, java cortado, mplayer or vlc | mv_embed will then rewrite the video tag to whatever playback method is available on the client be it native support, java cortado, mplayer or vlc | ||
Revision as of 18:30, 14 August 2009
Mv_Embed is a javascript library for easy embedding of ogg theora/vorbis media with the html5 tag. You can use it like so:
<script type="text/javascript" src="http://metavid.org/w/js2/mwEmbed/mv_embed.js"></script> ... <video src="mymovie.ogg">
mv_embed will then rewrite the video tag to whatever playback method is available on the client be it native support, java cortado, mplayer or vlc
Mv_Embed is part of mwEmbed that provides the base library for other mediaWiki media functionality. For more info see projects overview on mediaWiki.
Contents |
Multiple source types
If you want to be accessible to users that only have flash playback you can include both an ogg and flash video like so: (we presently use the multiple source feature here metavid.org). Now that Firefox 3.5 is out and java cortado has improved, flash fallback is less needed.
For a healthy web video future we recommend only using ogg also see Help build a better Internet with Open Video
<video>
<source type="video/ogg" src="mymovie.ogg" />
<source type="video/x-flv" src="mymovie.flv" />
<source type="video/h264" src="mymovie.mp4" />
</video>
Multiple sources, Multiple timed text tracks and Simple remote Embedding
we support the ROE (Rich Open multi-track media Encapsulation) format. This can be used for clean remote embedding multiple text/video/audio tracks in a single xml encapsulation (with MetavidWiki we make this xml accessible over javascript requests for remote embedding) ..
<video roe="my_roe_file.xml">
Also see usage in this blog
PHP based Flash Media Server
- To accompany the support of flash video a php based flv segment media server has been written.
- Based off of FLV4PHP
- Supports arbitrary clients that support flv playback. (like using VLC to play back flv)
- Tested with Sorenson h.263 flash baseline codec but in theory would work with other flash codecs in the flv container.
- sample usage to pull 20 to 40 seconds from myCLip.flv
<video src="mvFlvServer.php/myClip.flv?t=0:0:20/0:0:40" >
More options
There are ofcoruse many other options (like thumbnail,poster, size, inline transcript display etc) (not all of which have been well documented yet) but in general we aim to support as much of the html5 video spec as possible and provide a rich player interface for using html5 video
Usage
This site [metavid.org] of course make heavy use of the library. Remote embedding of metavid content also uses the library. When using the remote embedding feature be mindful of Security Considerations
If your site uses mv_embed you can list it here.
SVN access
MV_Embed is released under the GPL2 and hosted by the wikimedia foundation. In general the svn version represents the best version it can be checked out by running:
svn co http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/js2/mwEmbed/
Download Releases
(new release will be made available shortly)


