上一页 1 2 3 4 5 6 7 8 ··· 15 下一页
摘要: 介绍 HLS(HTTP Live Streaming) 协议是APPLE 提出的一种替代rtmp协议的直播传播协议 HLS 使用HTTP作为底层传输协议,传输的内容包括了m3u8文件和TS分片,其中m3u8文件用于记录可以播放哪些分片, M3u8解析 TS解析 ts分片中包含header+Paylo 阅读全文
posted @ 2022-10-19 16:49 simp00 阅读(678) 评论(0) 推荐(0)
摘要: #include #include #include #include #include <sys/stat.h> #include void test_copy_binary(std::string src,std::string dst){ std::ofstream ostrm(dst,std 阅读全文
posted @ 2022-10-18 17:23 simp00 阅读(33) 评论(0) 推荐(0)
摘要: inline bool exists_test0 (const std::string& name) { std::ifstream f(name.c_str()); return f.good(); } inline bool exists_test1 (const std::string& na 阅读全文
posted @ 2022-10-18 17:11 simp00 阅读(97) 评论(0) 推荐(0)
摘要: #编译选项 emcc sum.cc -o sum.js -sEXPORTED_FUNCTIONS=_malloc,_free sum.cc #include "util.h" #include<stdlib.h> #include<string.h> #include <malloc.h> EM_P 阅读全文
posted @ 2022-10-13 13:55 simp00 阅读(97) 评论(0) 推荐(0)
摘要: 安装nodejs tsc apt install nodejs which node npm npm install -g typescript tsc -v 配置tsc tsc --init tsconfig.json { "include":["./src/**/*.ts"],/*源代码存放的路 阅读全文
posted @ 2022-10-12 15:34 simp00 阅读(152) 评论(0) 推荐(0)
摘要: 下载ffmpeg版本 注意 这里环境是承接docker Ubuntu wasm 环境配置 浏览器debug c/c++ 中的docker ubuntu 环境 git clone https://git.ffmpeg.org/ffmpeg.git ffmpeg cd ffmpeg git branch 阅读全文
posted @ 2022-10-12 14:11 simp00 阅读(265) 评论(0) 推荐(0)
摘要: 内容简要 请使用者自行优化 #ifndef EM_PORT_API # if defined(__EMSCRIPTEN__) # include <emscripten.h> # if defined(__cplusplus) # define EM_PORT_API(rettype) extern 阅读全文
posted @ 2022-10-12 11:00 simp00 阅读(33) 评论(0) 推荐(0)
摘要: 编译选项 emcc mem.cc -o mem.js mem.cc #include "util.h" int g_int=42; double g_double = 3.1415926; EM_PORT_API(int*)get_int_ptr(){ return &g_int; } EM_POR 阅读全文
posted @ 2022-10-12 11:00 simp00 阅读(155) 评论(0) 推荐(0)
摘要: 编译选项 emcc test.c --js-library pkg.js -o test.js pkg.js mergeInto(LibraryManager.library,{ js_add:function(a,b) { console.log("js_add"); return a+b; }, 阅读全文
posted @ 2022-10-12 09:23 simp00 阅读(188) 评论(0) 推荐(0)
摘要: 将接口暴露出来 在test.c 中直接写出如下所示的代码 vim test.c #include<stdio.h> int add(int a,int b) { return a+b; } int main(int argc,char** argv) { return add(1,2); } 使用 阅读全文
posted @ 2022-10-11 15:31 simp00 阅读(206) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 15 下一页