Skip to content

Fix NPE in SUBSCRIBE eventId handling and enhance playback control - #72

Merged
lunasaw merged 2 commits into
masterfrom
20260523_project_init
Jun 25, 2026
Merged

lunasaw merged 2 commits into
masterfrom
20260523_project_init

Conversation

@lunasaw

@lunasaw lunasaw commented Jun 25, 2026

Copy link
Copy Markdown
Owner

No description provided.

lunasaw and others added 2 commits June 14, 2026 17:23
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>
@lunasaw
lunasaw merged commit 80787c8 into master Jun 25, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant