Commit graph

10 commits

Author SHA1 Message Date
neoxpert
62b4a8ceac
Update SRT to 1.5.4 (#74)
* use SRT 1.5.4

* Update nodejs.yml

drop EoL NodeJS versions
2025-04-08 22:24:10 +02:00
Jonas Birmé
23efbb8501 feat: bump to libsrt 1.5.2 2023-09-04 09:01:34 +02:00
Max van den Bosch
c3e77b11dd
Fixed Windows build: using"diff" instead of patch (#57) 2023-08-10 15:38:46 +02:00
Max van den Bosch
9e9a6bddce
Fix for build directories that contain spaces (#59) 2023-08-09 20:15:56 +02:00
Jonas Birmé
3ecb83ba6b
feat: update to SRT lib version 1.4.4 (#43)
Including:
- Updated SRT lib version to 1.4.4
- Building on Darwin arm64
- Obtain OPENSSL root using brew --prefix openssl
- Updated to latest node-addon-api and node-gyp
2022-11-10 16:50:48 +01:00
Stephan Hesse
ef2795cb52
Fix node-gyp rebuild script on Windows (#13)
* build-srt-sdk: add console log line about platform detection

* node-gyp rebuild: rm -j with num-cpus eval'd from shell (breaks Windows)
2020-10-26 16:54:20 +01:00
Stephan Hesse
bee401cce9
fix macOS Catalina build: the CMake config on previous versions doesn't (#14)
find the XCode/Clang SDK anymore, this however works fine with latest
SRT v1.4.2.
Now this however breaks support for the SRTO_TSBPDDELAY sock opt flag.
2020-10-26 16:49:39 +01:00
Stephan Hesse
bf60795889
Async API server/streams impl & functional tests + Allow to use local SRT source repo instead of remote (#9)
* replace stream module by improved version of readable/writable impl

* rm server.js

* async api improvments:
- better tracing of calls from worker back and forth
- fix transferrable handling to avoid copying buffers for r/w
- optional debug logs
- completed jsdocs annotations
- add dispose method
- add setLogLevel method (analoguous to added binding)

* node-srt C bindings:
- add SetLogLevel to get libSRT log output if desired
- add OK static member
- add #define EPOLL_EVENTS_NUM_MAX 1024
- improve error string thrown in Read (add that it comes from srt_recvmsg)
- improve error string thrown in Write (add that it comes from srt_sendmsg2)
- misc isofunctional improvements (var names) and comments

* add SRT logging related JS-side helper

* rewrite flat TypeScript decl files without "module" keyword

* add ts enum decl for all libSRT enums

* async-worker: enable using transferrable for zero-copy
+ allow better debugging (like in api/dispatcher side)
+ misc improvements on code quality

* add async-helpers: various functions to help dealing with transferrables
+ tracing calls to native bindings in debug output

* add async read/write modes functions + async-reader-writer class
- these will allow for performing high-level r/w operations conveniently
at optimum throughput for larger pieces of payload i.e list of packets.

* add srt-server and srt-connection (can manage multiple clients),
- based on async-api
- can be used with reader/writer (i.e the underlying modes)

* srt-server/connection typings

* async srt spec: add dispose method usage (but commented out as crashing atm)

* async srt spec: rm redundant checks on SRT static members (they are done
in other spec already)

* promises api spec: formal fixes

* stream spec: add dummy test

* package.json:
- put gyp toolchain in runtime deps (since the build happens on install)
- add JEST test runner
- shorten check-tsc script
- rebuild script: check & use all CPU cores available
- run rebuild actually on install, not preinstall (fixes deps not being there)
- remove preinstall and thus "npm install git-clone" in the package scripts

* update package lock

* update typings index not to need triple-slashs anymore

* in srt.ts example: check for read return value type

* build-srt-sdk script:
- allow to use any local libSRT code repo
- when using make: use all amount of cores available for build
- isolate better code running on different platforms

* update package main index with new things

* add enum typings index

* add jest config

* add "use strict" on async-srt-await example

* add integration/smoke testing for client-to-server one-way burst write

* readme: add note on build prerequisites

* readme: add infos on new components SRTServer/Connection & AsyncReaderWriter
2020-10-21 13:09:52 +02:00
Dillon Pentz
5b3fc5cdc5
Add Windows build support (#2)
This commit adds Windows build support by utilizing vcpkg to build
dependencies, and CMake for the build system.

These changes rely on vcpkg to be built and located in the VCPKG_ROOT
environment variable, along with having Visual Studio 2019 installed.
2020-06-24 08:44:52 +02:00
birme
5c598a89fa Build SRT SDK on install 2020-06-20 22:33:28 +02:00