Skip to content

Commit 96e79ac

Browse files
committed
ci: 再次修复WebAssembly门禁
1 parent fc171af commit 96e79ac

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ jobs:
117117
run: |
118118
mkdir -p install
119119
if [ "${{ matrix.lang }}" = "wasm" ]; then
120-
cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=install -DHTTPLIB_USE_ZSTD_IF_AVAILABLE=OFF -DBUILD_DEMO=ON -DBUILD_TEST=OFF -D${{ matrix.build_option }}=ON
120+
emcmake cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=install -DHTTPLIB_USE_ZSTD_IF_AVAILABLE=OFF -DBUILD_DEMO=ON -DBUILD_TEST=OFF -D${{ matrix.build_option }}=ON
121121
cmake --build build --target CoralReefCam --parallel $(nproc)
122122
else
123123
cmake -B build -G Ninja -DCMAKE_INSTALL_PREFIX=install -DHTTPLIB_USE_ZSTD_IF_AVAILABLE=OFF -DBUILD_DEMO=OFF -DBUILD_TEST=OFF -D${{ matrix.build_option }}=ON

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ CoralReefPlayer 支持 Windows、Linux、MacOS、Android、iOS 和纯血鸿蒙
2222
2323
CoralReefCam,中文名珊瑚礁™嘻屁屁高性能版,是 CoralReefPlayer 的示例项目,集成了 SDL、imgui、OpenCV 等库,可基于此项目开发高性能机器人上位机。目前作为监控软件使用,其最初的开发目的是用于解决拉流延迟问题。
2424

25-
CoralReefCam 现已支持 WebAssembly,可直接在浏览器中播放 MJPEG over HTTP 流,请前往[示例网站](http://crp.dawncraft.cc)体验。
25+
CoralReefCam 现已支持 WebAssembly,可直接在浏览器中播放 MJPEG over HTTP 流,在终端中输入以下命令前往[示例网站](http://crp.dawncraft.cc)体验。
26+
27+
```shell
28+
chrome --disable-web-security --enable-features=SharedArrayBuffer --user-data-dir="%localappdata%\Temp\Chrome" http://crp.dawncraft.cc/
29+
```
2630

2731
<div style="display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap;">
2832
<img src="doc/urpc_2025.jpg" alt="urpc_2025" style="width: 50%;">

0 commit comments

Comments
 (0)