2017年10月27日

srs客户端连接CRtmpServer立即中断问题

摘要: 最近遇到srs客户端推流时,连接CRtmpServer后立即中断,经调试发现srs在 int SrsRtmpClient::fmle_publish(string stream, int& stream_id)函数中调用了 下面的代码导致连接CRtmpServer后 CRtmpServer找不到那个 阅读全文

posted @ 2017-10-27 15:54 zentel 阅读(348) 评论(0) 推荐(0) 编辑

2016年12月28日

ZeroBrane Lua脚本编辑器代码自动补全

摘要: 简介 ZeroBrane Studio是一款支持代码提示、语法高亮、远程调试、代码分析、调试等功能的轻量级Lua IDE工具。可以去官网studio.zerobrane.com进行下载。 自动补全功能 这里说的是如何让你的代码进行自动补全。 首先进入interpreters文件夹新建一个lua脚本文 阅读全文

posted @ 2016-12-28 21:50 zentel 阅读(3891) 评论(0) 推荐(0) 编辑

2016年11月14日

ffmpeg只使用h264编译参数

摘要: --disable-everything --enable-decoder=h264 --enable-demuxer=h264 --enable-parser=h264 --disable-ffplay --disable-ffmpeg --disable-ffprobe --disable-ne 阅读全文

posted @ 2016-11-14 11:08 zentel 阅读(474) 评论(0) 推荐(0) 编辑

2016年10月27日

zlib压缩解压示例

摘要: #include #include #include #include "zlib.h" #if defined(MSDOS) || defined(OS2) || defined(WIN32) || defined(__CYGWIN__) # include # include # define SET_BINARY_MODE(file) setmode(fileno(fil... 阅读全文

posted @ 2016-10-27 11:12 zentel 阅读(1476) 评论(0) 推荐(0) 编辑

2016年10月11日

libsdl中文输入法候选列表不显示解决方案

摘要: libsdl输入中文时输入法不显示,将WM_IME_SETCONTEXT事件处理给注释即可。 WM_IME_SETCONTEXT If the application draws the composition window, the default IME window does not have 阅读全文

posted @ 2016-10-11 09:56 zentel 阅读(1682) 评论(1) 推荐(0) 编辑

2015年11月23日

ios 64位下编译webrtc的libvpx库出现错误Bad cputype for object file.Currently only tested for CPU_TYPE_x86_64

摘要: diff --git a/libvpx.gyp b/libvpx.gypindex 4f8cb2b..4eb6866 100644--- a/libvpx.gyp+++ b/libvpx.gyp@@ -74,7 +74,7 @@ # support for neon and hide i... 阅读全文

posted @ 2015-11-23 10:05 zentel 阅读(731) 评论(0) 推荐(0) 编辑

2015年11月11日

ZEngine游戏框架需求稿

摘要: 早在2013就开始接触cocos2dx游戏框架,觉得的使用框架对于游戏开发者来说有些不方便。我便想在cocos2dx的框架基础之上实现ZEngine库,方便开发者编辑动画,以及着重于对游戏逻辑的处理。首先游戏角色Actor的定义: 游戏中任何可以交互的东西都可以通过Actor来定义,Actor... 阅读全文

posted @ 2015-11-11 22:32 zentel 阅读(403) 评论(0) 推荐(0) 编辑

Android WebRTC视频旋转问题

摘要: 最近在对接WebRTC到安卓手机上,有个需求就是手机横屏时将对方图像进行旋转,研究了WebRTC video_render的代码后发现远端的视频渲染使用opengles20或surfaceview实现,其中opengles20使用硬件渲染,因此性能更好,所以只需将video_render_ope... 阅读全文

posted @ 2015-11-11 21:58 zentel 阅读(2434) 评论(0) 推荐(0) 编辑

WebRTC 音视频开发之路

摘要: 早在2014年就通过WebRTC实现了PC客户端的实时视频语音,那时P2P连接的建立使用的WebRTC自带的libjingle库,使用peerconnection的API实现的。后来在做远程桌面,文件传输需要点对点建立连接,对libjingle库研究了一段时间,发现了几个问题:1.libjing... 阅读全文

posted @ 2015-11-11 21:36 zentel 阅读(2346) 评论(0) 推荐(0) 编辑

2014年12月14日

rapidxml对unicode的支持

摘要: 为了提高duilib创建布局控件的效率,在LuaDui项目中使用rapidxml解析器替换了duilib库自带的xml解析器。duilib使用unicode编译,所以rapidxml需要解析unicode xml字符串。 使用rapidxml解析unicode字符串很简单,只需在rapidxm... 阅读全文

posted @ 2014-12-14 15:28 zentel 阅读(817) 评论(0) 推荐(0) 编辑

导航