Giter VIP home page Giter VIP logo

chplayer's Introduction

chplayer

网页视频播放器,html5优先,兼容移动端,支持mp4,flv,f4v以及m3u8格式,支持rtmp。支持点播和直播 官网:http://www.chplayer.com 演示:http://www.chplayer.com/down/v1.0/

调用示例

<script type="text/javascript">
   var videoObject = {
       logo: 'chplayer', //设置logo,非必须
       container: '#video',//“#”代表容器的ID,“.”或“”代表容器的class
       variable: 'player',//该属性必需设置,值等于下面的new chplayer()的对象
       video:'examples01.mp4'//视频地址
   };
   var player=new chplayer(videoObject);
</script>

chplayer's People

Contributors

ganl avatar niandeng-ckplayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chplayer's Issues

关于自行引入hls.js脚本

你好,方便在引入内置hls.js之前先做个判断吗?如果window上已经有Hls.js了,则优先使用,这样方便定制第三方的hls.js,谢谢

the volume doesn't work at the start the rtmp source.

<script type="text/javascript"> chplayer.prototype.logo=''; var videoObject = { container: 'video', variable: 'player', volume: 0.5, live: true, autoplay: true, video: 'rtmp://live.hkstv.hk.lxdns.com/live/hks', loaded: 'loadHandler' }; var player = new chplayer(videoObject); its not work at all.

请问项目是 怎样启动的? 直接 打开index.html吗?

直接打开index.html,报错:
Access to XMLHttpRequest at 'file:///F:/git/chplayer/screenshot/srt.srt?rand=chzynivl&' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

Safari下内存泄漏

在开启网页全屏,并且暂停较长时间(约十分钟),恢复播放后网页的内存占用剧增

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.