All Projects → fffonion → lua-resty-danmaku

fffonion / lua-resty-danmaku

Licence: other
Live danmaku server in OpenResty (WIP)

Programming Languages

lua
6591 projects

Projects that are alternatives of or similar to lua-resty-danmaku

lua-resty-ipcidr
A simple and very fast function to check against CIDR
Stars: ✭ 17 (+41.67%)
Mutual labels:  openresty
DanmakuChicken
一个在屏幕上显示弹幕的小程序
Stars: ✭ 17 (+41.67%)
Mutual labels:  danmaku
cdn-up-and-running
CDN Up and Running - an introduction about how modern CDNs works
Stars: ✭ 131 (+991.67%)
Mutual labels:  openresty
restyskeleton
Spawning barebones openresty applications from the terminal using ancient witchcraft
Stars: ✭ 21 (+75%)
Mutual labels:  openresty
lua-resty-busted
Test OpenResty scripts with busted
Stars: ✭ 29 (+141.67%)
Mutual labels:  openresty
lua-practice
使用lua结合redis,mysql,nginx等开发的实用性测试案例
Stars: ✭ 13 (+8.33%)
Mutual labels:  openresty
httpdump
A complete openresty-based tool for dumping http request & response in json format log.
Stars: ✭ 15 (+25%)
Mutual labels:  openresty
lua-resty-acme
Automatic Let's Encrypt certificate serving and Lua implementation of ACMEv2 procotol
Stars: ✭ 95 (+691.67%)
Mutual labels:  openresty
lightning
服务收集app web h5 埋点信息,openresty 接受,推送到kafka
Stars: ✭ 39 (+225%)
Mutual labels:  openresty
cassandra-nginx-cdn
Some config files and POC code to use Apache Cassandra as distributed storage for HLS chunks accross multiple datacenters and scripts for converting/transcoding UDP MPEG-TS to HLS and vice versa. The idea is take from Globo.com’s Live Video Platform for FIFA World Cup ’14.
Stars: ✭ 24 (+100%)
Mutual labels:  openresty
hello-muiplayer
💡 一款优秀的 HTML5 视频播放器框架
Stars: ✭ 268 (+2133.33%)
Mutual labels:  danmaku
redis cluster
a openresty nginx lua redis cluster
Stars: ✭ 26 (+116.67%)
Mutual labels:  openresty
nott
The New OTT Platform - an excuse to discuss and design a simple edge computing platform
Stars: ✭ 46 (+283.33%)
Mutual labels:  openresty
lua-resty-sniproxy
SNI Proxy based on stream-lua-nginx-module
Stars: ✭ 78 (+550%)
Mutual labels:  openresty
lua-resty-aries
openresty and lua multi-function template
Stars: ✭ 47 (+291.67%)
Mutual labels:  openresty
blrec
Bilibili Live Streaming Recorder 哔哩哔哩直播录制
Stars: ✭ 124 (+933.33%)
Mutual labels:  danmaku
phi
an api-gateway based on openresty
Stars: ✭ 23 (+91.67%)
Mutual labels:  openresty
flutter danmaku
a normal danmaku by flutter. live comment hohoho😊 all in dart.
Stars: ✭ 30 (+150%)
Mutual labels:  danmaku
lua-resty-tarpit
OpenResty response time inflation
Stars: ✭ 25 (+108.33%)
Mutual labels:  openresty
litemall-dw
基于开源Litemall电商项目的大数据项目,包含前端埋点(openresty+lua)、后端埋点;数据仓库(五层)、实时计算和用户画像。大数据平台采用CDH6.3.2(已使用vagrant+ansible脚本化),同时也包含了Azkaban的workflow。
Stars: ✭ 36 (+200%)
Mutual labels:  openresty

Name

lua-resty-danmaku - Danmaku server based on the ngx_lua cosocket API

Table of Contents

  • Description
  • Synopsis
  • Sample configuration
  • TODO
  • Copyright and License
  • See Also

Description

This Lua library is a Danmaku server based on ngx_lua module. Currently this server can only work on Websocket protocol.

Note that at least ngx_lua 0.10.0 or ngx_openresty 1.9.7.2 is required. Also, lua-resty-websocket is required to accept Websocket connections.

Synopsis

Back to TOC

Sample configuration

server {
        listen 80;
        listen 443 ssl http2;

        location ~ /danmaku/(\d+) {
            set $liveid $1;
            set $keep_alive_timeout 30000;
            content_by_lua "
                local dmk = require('resty.danmaku')
                dmk.run()
            ";
        }

        location = /danmaku/stat {
             content_by_lua "
                local u = require 'resty.danmaku.stat'
                require 'resty.danmaku.broadcaster'
                ngx.say(u._get_stat())
             ";
        }
}

Back to TOC

TODO

  • HTTP pooling support
  • TCP protocol support

Back to TOC

Copyright and License

This module is licensed under the BSD license.

Copyright (C) 2016, by fffonion [email protected].

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  • Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  • Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Back to TOC

See Also

Back to TOC

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