All Projects → songtianyi → Danmaku

songtianyi / Danmaku

Licence: apache-2.0
live video comments protocol and platform api

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Danmaku

Bilibililiverecorder
pure-java B站/Acfun/斗鱼/虎牙/快手/抖音/YY/战旗/花椒 直播视频录制。仅需Java环境即可运行
Stars: ✭ 195 (+178.57%)
Mutual labels:  douyu, bilibili, live
Qliveplayer
A cute and useful Live Stream Player with danmaku support.
Stars: ✭ 105 (+50%)
Mutual labels:  douyu, bilibili, 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 (+320%)
Mutual labels:  danmaku, danmu, live
Danmu
Python 弹幕包 A live danmu package for python
Stars: ✭ 661 (+844.29%)
Mutual labels:  douyu, bilibili, danmu
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: ✭ 589 (+741.43%)
Mutual labels:  danmaku, danmu, live
Real Url
获取斗鱼&虎牙&哔哩哔哩&抖音&快手等 58 个直播平台的真实流媒体地址(直播源)和弹幕,直播源可在 PotPlayer、flv.js 等播放器中播放。
Stars: ✭ 3,748 (+5254.29%)
Mutual labels:  douyu, bilibili, danmu
Danmu.server
一个开源的弹幕后端
Stars: ✭ 92 (+31.43%)
Mutual labels:  bilibili, danmaku, danmu
Iina Plus
Extra danmaku support for iina. (iina 弹幕支持
Stars: ✭ 451 (+544.29%)
Mutual labels:  douyu, bilibili, danmaku
acfundanmu
AcFun直播API
Stars: ✭ 27 (-61.43%)
Mutual labels:  live, danmaku, danmu
blrec
Bilibili Live Streaming Recorder 哔哩哔哩直播录制
Stars: ✭ 124 (+77.14%)
Mutual labels:  live, danmaku, bilibili
Kikoplay
KikoPlay - NOT ONLY A Full-Featured Danmu Player 不仅仅是全功能弹幕播放器
Stars: ✭ 313 (+347.14%)
Mutual labels:  danmaku, danmu
Swiftproject
swift project that brings together some demos, componented, Target-Action, use Swift
Stars: ✭ 310 (+342.86%)
Mutual labels:  douyu, live
Bilibili Block List
基于正则表达式的Bilibili弹幕屏蔽规则
Stars: ✭ 304 (+334.29%)
Mutual labels:  bilibili, danmaku
Danmu.go
基于golang的命令行形式的直播网站(斗鱼)的弹幕浏览
Stars: ✭ 14 (-80%)
Mutual labels:  douyu, danmu
Bilibili Live Recorder
下载 bilibili 直播 视频流
Stars: ✭ 52 (-25.71%)
Mutual labels:  bilibili, live
Abplayerhtml5
Video Player for danmaku comments. ABPlayer in HTML5. ABPlayer核心构件以动态HTML编写的版本。向HTML5进发!HTML5弹幕播放器
Stars: ✭ 858 (+1125.71%)
Mutual labels:  bilibili, danmu
Bilili
🍻 bilibili video (including bangumi) and danmaku downloader | B站视频(含番剧)、弹幕下载器
Stars: ✭ 379 (+441.43%)
Mutual labels:  bilibili, danmaku
Hjdanmakudemo
A high performance danmaku engine for iOS
Stars: ✭ 844 (+1105.71%)
Mutual labels:  danmaku, live
Rsshub
🍰 Everything is RSSible
Stars: ✭ 18,111 (+25772.86%)
Mutual labels:  douyu, bilibili
Bilibili Live Chat
📽️ 无后端的仿 YouTube Live Chat 风格的简易 Bilibili 弹幕姬
Stars: ✭ 379 (+441.43%)
Mutual labels:  bilibili, live

danmaku

各直播平台弹幕协议和开放平台API

支持列表

  • douyu.com
package main

import (
	"fmt"
	"github.com/songtianyi/barrage/douyu"
	"github.com/songtianyi/rrframework/logs"
)

func chatmsg(msg *douyu.Message) {
	level := msg.GetStringField("level")
	nn := msg.GetStringField("nn")
	txt := msg.GetStringField("txt")
	logs.Info(fmt.Sprintf("level(%s) - %s >>> %s", level, nn, txt))
}

func main() {
	client, err := douyu.Connect("openbarrage.douyutv.com:8601", nil)
	if err != nil {
		logs.Error(err)
		return
	}

	client.HandlerRegister.Add("chatmsg", douyu.Handler(chatmsg), "chatmsg")
	if err := client.JoinRoom(288016); err != nil {
		logs.Error(fmt.Sprintf("Join room fail, %s", err.Error()))
		return
	}
	client.Serve()
}
  • live.bilibili.com
package main

import (
	"github.com/songtianyi/barrage/bilibili"
	"github.com/songtianyi/rrframework/logs"
)

func danmu(msg *bilibili.Message) {
	logs.Debug(">>> ", string(msg.Bytes()))
}

func main() {
	// uri, userid, handlerRegister
	client, err := bilibili.Connect("https://live.bilibili.com/43783", -1, nil)
	if err != nil {
		logs.Error(err)
		return
	}
	client.HandlerRegister.Add(bilibili.DANMU_MSG, bilibili.Handler(danmu), "danmu")
	client.Serve()
}
  • padatv.com
package main

import (
	"github.com/songtianyi/barrage/panda"
	"github.com/songtianyi/rrframework/logs"
)

func danmu(msg *panda.DecodedMessage) {
	logs.Debug("(%s) - %s >>> %s", msg.Type, msg.Nickname, msg.Content)
}

func main() {
	// uri, handlerRegister
	client, err := panda.Connect("https://www.panda.tv/66666", nil)
	if err != nil {
		logs.Error(err)
		return
	}
	client.HandlerRegister.Add(panda.DANMU_MSG, panda.Handler(danmu), "danmu")
	client.Serve()
}

demo

douyu-barrage-demo

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].