Josh Brickner![]()
- Get a player in 3 easy steps
- Full Javascript/HTML/CSS UI
- Full Availability of HTML5 <video> attributes
- Pass content to be displayed in browsers that do not support <video>
- Support for multiple formats for each video.
- Support for WebKit's fullscreen API
- Full Range of Video Controls
- Specify which controls you need
- Follows YUI practices (or at least tries too!)
- Support for <audio>
- Better cross-browser compatibility
- Pseudo-Fullscreen capabilites (will size video to browser window)
<script src="http://yui.yahooapis.com/3.0.0/build/yui/yui-min.js"></script>var player;
YUI({
modules: {
'gallery-player': {
fullpath:'js/gallery-player-min.js',
requires: ['widget','node','slider', 'anim', 'array']
}
}
}).use('gallery-player', 'node-base', function(Y){
player = new Y.Player({
contentBox: '#video',
type: 'video',
stylesheet: 'false',
images: 'images/',
sources:[
{title:'http://macinjosh.s3.amazonaws.com/video.mov', type:'video/mp4'},
{title:'http://macinjosh.s3.amazonaws.com/video.mp4', type:'video/mp4'},
{title:'http://macinjosh.s3.amazonaws.com/video.ogv', type:'video/ogg'}
],
poster: 'video/poster.png',
preload: false,
autoplay: true,
loop: false,
standardControls: false,
controlSet: ['play','rewind', 'forward', 'fullscreen', 'volume', 'scrubber'],
width: 800,
height: 450,
degrade: '<p>Please use Firefox, Safari, or Chrome</p>'
});
player.render();
player.focus();
});No forum posts for this module.
© 2006-2011 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info