Repository navigation
Fix NPE in SUBSCRIBE eventId handling and enhance playback control - #72
Merged
Merged
Conversation
deviceCatalogSubscribe 旧实现从不设置 eventId,SUBSCRIBE 构建时 EventHeader.setEventId(null) 抛 NPE,订阅根本发不出去。按 GB/T 28181-2022 N.4.2(Event 头域必须携带数字 id)补全: - SubscribeRequestBuilder:eventId 为空时回退到自动生成数字 id 的重载, 保证 Event 头始终合规且不触发 JAIN-SIP NPE - ServerCommandSender:deviceCatalogSubscribe 由 sn() 生成数字 eventId, deviceMobilePositionSubscribe 调用方未传时 sn() 兜底,与 alarm/ptz 订阅一致 - TestClientImpl:补 onMobilePositionSubscribe 回调与 lastMobilePositionSubscribe - 新增 SubscribeRequestBuilderTest 单测 + Catalog/MobilePosition 订阅流程集成测试
- feat(sdp): 新增 tcpSetup 字段支持 RFC 4145 a=setup: 属性解析 - feat(playback): 回放控制增强,支持 Seek 秒数和倍速倍率参数传递 - test: 新增 SDP 解析测试用例覆盖 TCP setup 场景 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
No description provided.