linsea / Opendanmaku
一个Android的弹幕控件.Open Danmaku is a Android widget which shows danmaku animation.
Stars: ✭ 362
Programming Languages
java
68154 projects - #9 most used programming language
Labels
Projects that are alternatives of or similar to Opendanmaku
FXDanmaku
High-performance danmaku with click event, reusable items and customize configurations.
Stars: ✭ 73 (-79.83%)
Mutual labels: danmaku
danmaku-player
An HTML5 danmaku video player for real-time image processing using WebGl and Web Components.融合了webgl和web components的实时图像处理弹幕播放器
Stars: ✭ 40 (-88.95%)
Mutual labels: danmaku
nplayer
🚀 支持移动端、支持 SSR、支持直播,可以接入任何流媒体。高性能的弹幕系统。高度可定制,所有图标、主题色等都可以替换,并且提供了内置组件方便二次开发。无第三方运行时依赖。
Stars: ✭ 897 (+147.79%)
Mutual labels: danmaku
Danmaku-no-Kyojin
Danmaku no Kyojin (弾幕の巨人) is a 2D danmaku developed in C# with XNA.
Stars: ✭ 14 (-96.13%)
Mutual labels: danmaku
Kikoplay
KikoPlay - NOT ONLY A Full-Featured Danmu Player 不仅仅是全功能弹幕播放器
Stars: ✭ 313 (-13.54%)
Mutual labels: danmaku
Ocbarrage
iOS 弹幕库 OCBarrage, 同时渲染5000条弹幕也不卡, 轻量, 可拓展, 高度自定义动画, 超高性能, 简单易上手; A barrage render-engine with high performance for iOS. At the same time, rendering 5000 barrages is also very smooth, lightweight, scalable, highly custom animation, ultra high performance, simple and easy to use!
Stars: ✭ 294 (-18.78%)
Mutual labels: danmaku
flutter danmaku
a normal danmaku by flutter. live comment hohoho😊 all in dart.
Stars: ✭ 30 (-91.71%)
Mutual labels: danmaku
Android Open Danmaku
一个Android的弹幕控件. Open Danmaku is a Android widget which shows danmaku animation(https://github.com/linsea/OpenDanmaku).
Usage
For a working implementation of this project see the sample app.
- add library dependency to your
build.gradle
file.
dependencies {
compile 'com.linsea:opendanmaku:[email protected]'
}
- Include the
DanmakuView
in your layout.
<com.opendanmaku.DanmakuView
android:id="@+id/danmakuView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
app:start_Y_offset="0.2"
app:end_Y_offset="0.8"
app:max_row="4"
app:max_running_per_row="2"
app:pick_interval="1000"
app:show_debug="false" />
- In your
Activity
:
mDanmakuView = (DanmakuView) findViewById(R.id.danmakuView);
// add danmaku items:
mDanmakuView.addItem(list, true);
mDanmakuView.addItem(new DanmakuItem(this, "Hello World", mDanmakuView.getWidth());
//show danmaku and play animation:
mDanmakuView.show();
//hide and pause playing:
mDanmakuView.hide();
//release all playing and waiting items:
mDanmakuView.clear();
Customization
-
start_Y_offset
first channel offset to the view top edge. -
end_Y_offset
last channel offset to the view top edge. -
max_row
max running channels on Y axis. -
max_running_per_row
max concurrent running items in one channel. -
pick_interval
interval millisecond picking up an item in the backing queue to play. -
show_debug
show debug info like FPS and lines between channels.
You might also like
- UniversalVideoView VideoView like Widget with more features.
License
Copyright 2015 the OpenDanmaku Author <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].