GithubHelp home page GithubHelp logo

cengbin / html5-video-player Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 1.0 2.72 MB

HTML5视频播放器

Home Page: https://cengbin.github.io/html5-video-player/example/index.html

JavaScript 75.07% SCSS 19.55% HTML 5.38%
html5 javascript video

html5-video-player's Introduction

HTML5视频播放器

PC+Mobile端自适应简洁的视频播放器 Check out the demo here.

HTML

<video id="video2" src="./video1.mp4" poster="video1_default.jpg"></video>

JavaSript

引用videoplayer.js的正确方法和使用:
<link rel="stylesheet" href="../dist/video-player.css">

<script src="../dist/video-player.js"></script>

new vp.VideoPlayer({
    video: "#video2"
})
options对象介绍
key 值类型 描述
video {String,<video/>} video标签元素id或video标签元素

示例:

/**
* @options
* video - video标签元素id或video标签元素
*/
var options = {
	video: "#video2"
}

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.