File tree Expand file tree Collapse file tree 4 files changed +42
-9
lines changed
Expand file tree Collapse file tree 4 files changed +42
-9
lines changed Original file line number Diff line number Diff line change 1+ # 弹幕核心通用构件 CommentCoreLibrary
2+ [ ![ NPM version] ( https://badge.fury.io/js/comment-core-library.svg )] ( http://badge.fury.io/js/comment-core-library )
3+ [ ![ Bower version] ( https://badge.fury.io/bo/comment-core-library.svg )] ( http://badge.fury.io/bo/comment-core-library )
4+ [ ![ Built with Grunt] ( https://cdn.gruntjs.com/builtwith.png )] ( http://gruntjs.com/ )
5+ [ ![ License] ( http://img.shields.io/badge/license-MIT-brightgreen.svg )] ( http://opensource.org/licenses/MIT )
6+ [ ![ Build Status: Linux] ( https://travis-ci.org/jabbany/CommentCoreLibrary.svg?branch=master )] ( https://travis-ci.org/jabbany/CommentCoreLibrary )
7+ [ ![ Coverage Status] ( https://img.shields.io/coveralls/jabbany/CommentCoreLibrary.svg )] ( https://coveralls.io/r/jabbany/CommentCoreLibrary?branch=master )
8+
9+ 其它语言: [ English] ( README.md )
10+
11+ 弹幕核心通用构件是一套基于JavaScript构建的弹幕控制器,意在催化HTML5下弹幕播放器的发展。同时方便
12+ 希望了解弹幕播放器运作原理的开发者,提供简单但是深入的入门。开发者们可以根据弹幕核心通用构件来自定义
13+ 自己的流媒体注释播放模式。
14+
15+ 不管你在开发基于Javascript的Web服务,还是其他的需要弹幕播放功能服务,都可以参考弹幕核心
16+ 的实现代码。我们以简单的方法构建了 (1) 时间轴管理 (2) 基础空间规划 (3) 弹幕过滤 (4)
17+ 高级弹幕效果 (5) 基础格式解析 (6) 代码弹幕支持。
18+
19+ ## 测试
20+ 你可以在[ 这里] ( http://jabbany.github.io/CommentCoreLibrary/demo ) 访问到测试页面。
21+ 我们欢迎各种[ BUG报告] ( CONTRIBUTING.md ) 。
22+
23+ ## 许可
24+ 本项目采取非常宽松的MIT许可。该许可允许你把本项目运用在任何开源或是闭源的,非营利或商业性的项目中。
25+ 您只需在使用到的地方添加下面一行注释:
26+
27+ CommentCoreLibrary (//github.com/jabbany/CommentCoreLibrary) - Licensed under the MIT license
28+
29+ ## 使用
30+ - 有关本项目的[ 文档] ( docs/ ) 可以在 ` docs/ ` 文件夹里面找到。
31+ - 一些实验性模块在 ` experimental/ ` 里。
32+ - 测试数据在 ` test/ ` 里。
33+
34+ ## 做出贡献
35+ 非常欢迎提交问题报告和意见建议,同时你也可以在GitHub上Fork本工程,并发送Pull请求来提交
36+ 你对项目的贡献。我们非常欢迎二次开发哟!有关具体介绍请参考 [ CONTRIBUTING] ( CONTRIBUTING.md ) 。
37+
38+ 我们欢迎对项目任何细节处的针对性研发,尤其比如:解析功能、高级弹幕/代码弹幕和CSS优化等。
39+ 如果希望研发播放器的构造和功能,请参考姊妹项目 ABPlayerHTML5。
Original file line number Diff line number Diff line change @@ -131,15 +131,15 @@ <h2>Tests</h2>
131131
132132cm . scripting = bscripter . getSandbox ( $ ( "commentCanvas" ) , {
133133 'play' : function ( ) {
134- bscripter . logger . log ( 'Player.play invoked. Ignoring! ' ) ;
134+ bscripter . logger . log ( 'Player.play invoked. Ignoring. ' ) ;
135135 //resume();
136136 } ,
137137 'pause' : function ( ) {
138- bscripter . logger . log ( 'Player.pause invoked. Ignoring! ' ) ;
138+ bscripter . logger . log ( 'Player.pause invoked. Ignoring. ' ) ;
139139 //stop();
140140 } ,
141141 'seek' : function ( time ) {
142- bscripter . logger . log ( 'Seeking to [' + time + ']. Ignoring! ' ) ;
142+ bscripter . logger . log ( 'Seeking to [' + time + ']. Ignoring. ' ) ;
143143 //playhead = time;
144144 //lasthead = time;
145145 //start = Date.now() - playhead;
Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ var __OOAPI = new function () {
1313 try {
1414 channels [ msg . channel ] . listeners [ i ] ( msg . payload ) ;
1515 } catch ( e ) {
16- if ( e instanceof SyntaxError ) {
17- __trace ( msg . payload ) ;
18- }
1916 if ( e . stack ) {
2017 __trace ( e . stack . toString ( ) , 'err' ) ;
2118 } else {
Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ var __OOAPI = new function () {
1313 try {
1414 channels [ msg . channel ] . listeners [ i ] ( msg . payload ) ;
1515 } catch ( e ) {
16- if ( e instanceof SyntaxError ) {
17- __trace ( msg . payload ) ;
18- }
1916 if ( e . stack ) {
2017 __trace ( e . stack . toString ( ) , 'err' ) ;
2118 } else {
You can’t perform that action at this time.
0 commit comments