2 Star 3 Fork 0

xieping0808/nginx-rtmp-module

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ngx_rtmp_bandwidth.h 584 Bytes
一键复制 编辑 原始数据 按行查看 历史
Roman Arutyunyan 提交于 2013-12-23 20:24 . added audio and video bw to stat
/*
* Copyright (C) Roman Arutyunyan
*/
#ifndef _NGX_RTMP_BANDWIDTH_H_INCLUDED_
#define _NGX_RTMP_BANDWIDTH_H_INCLUDED_
#include <ngx_config.h>
#include <ngx_core.h>
/* Bandwidth update interval in seconds */
#define NGX_RTMP_BANDWIDTH_INTERVAL 10
typedef struct {
uint64_t bytes;
uint64_t bandwidth; /* bytes/sec */
time_t intl_end;
uint64_t intl_bytes;
} ngx_rtmp_bandwidth_t;
void ngx_rtmp_update_bandwidth(ngx_rtmp_bandwidth_t *bw, uint32_t bytes);
#endif /* _NGX_RTMP_BANDWIDTH_H_INCLUDED_ */
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xieping0808/nginx-rtmp-module.git
git@gitee.com:xieping0808/nginx-rtmp-module.git
xieping0808
nginx-rtmp-module
nginx-rtmp-module
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385