ABPlayerHTML5 is a sub project of ABPlayer. By porting the core classes needed for comments in the ABPlayer project to JS, ABPlayerHTML5 attempts to achieve a simple but highly adaptable comment engine embeddable (later) in HTML5.
ABPlayerHTML5 currently can work with color,size,movement and opacity properties concerning comments and by default supports scrolling, top, bottom, reverse and fixed position comments. ABPlayerHTML5 uses mainly DHTML and incorporates few HTML5 components (if any) to work, so it has a wider compatability across browsers.
The main line features a player that has a very basic interface and API connection to bilibili.tv
To test out on your browser, try our demo. NOTE : Support for H.264 is not available on Firefox so the demo will not work. Works best with webkit based browsers. Don't bother trying with anything that does not support HTML5.
ABPlayer employes a compiled version of CommentCoreLibrary. If you are only interested in the implementation for scrolling comments, please move on to CommentCoreLibrary
English documentation has yet to be released, though you may use Google Translate or any similar translation service to get insights into inner workings by translating the Chinese text below.
ABPlayerHTML5是一个ABPlayer的子项目。通过把ABPlayer的核心弹幕类重写成JS来实现一个简单但是能高度整合 HTML5的原生弹幕播放控件
目前项目支持弹幕的颜色、大小、轨迹运动和透明度属性,同时默认支持:滚动,顶部,底部,逆向和定位弹幕。 本工程目前仅需要浏览器对动态HTML有所支持(对DOM的操作)所以能取得更高的跨浏览器兼容性。在未来可能会利用 HTML5控件实现Video播放和虑镜效果等。
本项目主线包括一个简单的播放器界面和一个和Bilibili联通的API端口(jslib/mottobilibili.js)
如果你对项目的效果感兴趣,请戳这里来观看本项目在你浏览器下的效果。 注意 由于缺乏H.264解码器支持, Firefox下无法观看本测试Demo。如果你的浏览器不支持HTML5就更不要尝试了。
Copyright (c) 2013 Jim Chen (http://kanoha.org/), under the MIT license.