摘要: 修改了fetch-timeout 的代码,增加了取消,完整列出来: export async function fetchWithTimeout(url: RequestInfo, options: RequestInit | undefined, timeout: number, error: s 阅读全文
posted @ 2021-06-17 17:35 花园小花匠 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 本文总结于 un SegmentTemplate with number sequence: 简称序号模式 <SegmentTemplate duration="2" initialization="$RepresentationID$/init.mp4" media="$Representatio 阅读全文
posted @ 2021-04-01 16:47 花园小花匠 阅读(564) 评论(0) 推荐(0) 编辑
摘要: 本文意在给出一个可用的 C# 调用 C/C++ lib 的实例。 C/C++ lib C/C++ header #ifndef DPS_H #define DPS_H #ifdef __cplusplus extern "C" { #endif #if (defined _WIN32) || (de 阅读全文
posted @ 2020-09-15 22:10 花园小花匠 阅读(653) 评论(0) 推荐(0) 编辑
摘要: 在 Windows 平台下,导出dll/lib 一般会指定/DEF, 即导出函数的名称。下面的代码简化了导出函数的形式: #ifdef MM_EXPORTS #define MMAPI __declspec(dllexport) #else #define MMAPI __declspec(dlli 阅读全文
posted @ 2020-09-08 23:46 花园小花匠 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 在文章中c# 设置 C++ 回调函数 中,作者说 C++中的回调函数必须用_stdcall标记,使用stdcall方式回调 举例而言,c/cpp 导出的函数多数以 __cdecl 形式, typedef void(*Render)(double* data, BOOL* color); 当在 .Ne 阅读全文
posted @ 2020-09-02 17:31 花园小花匠 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 自定义 cpp tools 的缓存文件 cpp tool 会在C:\Users%USERNAME%\AppData\Roaming\Code 下生成缓存目录 IntelliSense browse 数据库位置 C_Cpp.default.browse.databaseFilename 默认为defa 阅读全文
posted @ 2020-06-12 15:58 花园小花匠 阅读(2847) 评论(0) 推荐(1) 编辑
摘要: 使用 HAProxy 分流 443 端口上的多个服务 使用 HAProxy 实现单端口多服务 4层代理和7层代理的区别 利用Haproxy实现443端口的复用 直接贴配置文件吧: global log /dev/log local0 log /dev/log local1 notice chroot 阅读全文
posted @ 2020-05-26 17:24 花园小花匠 阅读(2152) 评论(0) 推荐(0) 编辑
摘要: "AC 3/EAC 3文档" AC 3 语法 bit stream 语法 : AC 3流由一连串的同步帧(synchronization frames)组成。 如下图: 每个同步帧包含6个编码的音频块(audio blocks: AB), 每个AB 表示每个channel 256个新的audio s 阅读全文
posted @ 2020-04-14 09:47 花园小花匠 阅读(1562) 评论(0) 推荐(1) 编辑
摘要: 术语: Initialization Segment 通常指 box,不包含 box Movie Fragment 一般指 box Track Encryption box sample group description box Sample To Group Box sample encrypt 阅读全文
posted @ 2020-04-08 10:42 花园小花匠 阅读(2207) 评论(0) 推荐(0) 编辑
摘要: 事件查看器中没有错误代码显示。 Windows 10 L2TP/IPsec Manual Setup Instructions Bold items are things you will click or type To add a necessary registry setting: Pres 阅读全文
posted @ 2019-11-16 10:00 花园小花匠 阅读(1144) 评论(0) 推荐(0) 编辑