feat(hikvision): on-demand HCNetSDK pull, WebRTC play, DataChannel PTZ#4688
Open
magicbear wants to merge 5 commits into
Open
feat(hikvision): on-demand HCNetSDK pull, WebRTC play, DataChannel PTZ#4688magicbear wants to merge 5 commits into
magicbear wants to merge 5 commits into
Conversation
added 5 commits
July 12, 2026 14:16
…TZ API Integrate Hikvision devices as on-demand publishers for stream names SerialNO_CHANNEL_SUBCHANNEL, with config, ES preferred demux, direct SrsLiveSource inject (no RTMP loopback) to avoid StreamBusy races, timestamp normalization for stable HTTP-FLV/VLC play, and HTTP PTZ control API.
Add optional --sctp=on build with usrsctp, SrsSctp over DTLS application data, DCEP open/ack, play SDP m=application answer, and route string messages to Hikvision handle_control_json for camera PTZ control.
Enable rtmp_to_rtc when Hikvision publishes so RTC play receives RTP, allow m=application in play SDP checks, return JSON on play API errors, and add research/players/hikvision.html for WebRTC + DataChannel PTZ.
Track amd64/aarch64 libhcnetsdk and HCNetSDKCom dependencies so builds with --hikvision=on work without manually copying proprietary SDKs.
Remove vendored usrsctp tree from the main repo and track trunk/3rdparty/usrsctp via submodule (https://github.com/sctplab/usrsctp.git). Clone with: git submodule update --init trunk/3rdparty/usrsctp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Experimental Hikvision integration for SRS:
SerialNO_CHANNEL_SUBCHANNEL; frames injected intoLiveSource(no RTMP self-publish loopback) to avoid concurrent StreamBusy races.rtmp_to_rtc+SrsRtmpBridgefrom Hikvisionensure_publish().POST /api/v1/hikvision/control, plus experimental WebRTC DataChannel (usrsctp over DTLS) for in-session PTZ.trunk/research/players/hikvision.html../configure --hikvision=on --sctp=on.trunk/libs/;usrsctpvia git submodule (sctplab/usrsctp).Commits
feat(hikvision): on-demand HCNetSDK pull with LiveSource inject and PTZ APIfeat(rtc): experimental WebRTC DataChannel via usrsctp for Hikvision PTZfix(hikvision): bridge LiveSource to WebRTC and add PTZ demo pagechore(hikvision): vendor HCNetSDK shared libraries under trunk/libschore: use sctplab/usrsctp as git submoduleNotes / caveats
.sofiles are vendored for Linux amd64 only.--sctp=on/SRS_SCTP.git submodule update --init trunk/3rdparty/usrsctp.rtmp_to_rtc onfor browser play.Test plan
git submodule update --init trunk/3rdparty/usrsctp./configure --hikvision=on --sctp=on && make/rtc/v1/play/+ demo page shows video