Giter Site home page Giter Site logo

video's Introduction

video

HTML5 video网页播放器 适用ie9及以上浏览器,后续兼容更多浏览器 #使用方法

<link href="css/video-js-min.css" rel="stylesheet">

<div style="width:600px" >
    <video id="my-video">
         <source src="oceans.mp4" type="video/mp4">     
         <p class="vjs-no-js">
         	您浏览器不支持播放器,请升级!
         </p>
    </video>
	</div>

<script src="js/video-min.js"></script>

<script>
var Options={
	"autoplay":false,//是否自动播放
	"endedfn":function(){//结束回调
		console.log('谢谢观看');	
	},
	"nextfn":function(){//下个事件
		console.log('下个事件');	
	},
	"volume":50,//默认音量(1-100)
	"currentTime":0,//播放起点,单位为秒
}
var Video=new video();	
Video.init('my-video',Options); //init(id,Options);id为必填,Options为选填

#demo地址 http://h.hemaj.com/html/video/video.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.