Streamplace AI Pipeline Integration (WHIP/WHEP)#1
Draft
Conversation
… and add App Dev Server
- Add .mp4 and .mkv to .gitignore - Update vscode launch configs to use node debugger with bash for better process control - Add compound launch config for running streamplace + app dev server together - Add subtitle toggle to viewer context menu - Implement subtitle support in HLS player with proper track management - Change default player protocol from WebRTC to HLS - Add aigateway package for AI transcription gateway client with session
- Add subtitle offset controls to viewer context menu with +1s/-1s/reset options - Display current subtitle offset in menu title and adjustment UI - Pass subtitle offset as query parameter to HLS source URL - Add subtitleOffsetMS state to player store with getter/setter - Implement structured transcript segments with timing in aigateway - Add TranscriptSegment and WordTimestamp types for precise subtitle timing - Refactor TranscriptStore to use segments
This reverts commit cc2b68b.
Refactor AI gateway client to try multiple endpoint paths for better compatibility with different gateway versions. Remove RewriteURLsTo config option in favor of automatic URL normalization based on the configured base URL. Add StopURL field to Session response. Update TranscriptEvent to use RFC3339 timestamp format instead of milliseconds. Remove unused error tracking from RTMPPublisher and legacy transcript segment conversion logic.
Remove SegmentAndSignElemH264Parse function which was a duplicate of SegmentAndSignElem with identical functionality. Update WebRTCIngest to use the standard SegmentAndSignElem method instead.
Add debug segment dump when MP4 validation fails after signing to help diagnose segment validation issues.
Remove transient mux error retry logic and excessive timestamp zeroing from ConvergeSegment. Add debug segment dump at start of convergence and per-attempt debug file output when SegmentDebugDir is configured. Simplify MP4 metadata zeroing to only handle bitrate fields instead of all timestamps.
Decrease pipeline start timeout in MP4ToMPEGTS from 60 seconds to 10 seconds to fail faster when conversion stalls. Add missing newline at end of segment_converge.go.
Remove AIGatewayPathPrefix config option and related PathPrefix field from aigateway.Config. Simplify endpoint discovery to only try base paths without prefix variants, removing the /gateway/ path candidates that were previously used for proxy compatibility.
Remove the Text field from TranscriptEvent struct in favor of structured Segments data. Simplify SSE payload parsing to expect single-event format wrapped in array instead of handling multiple legacy formats. Update debug logging to remove text field reference.
Remove automatic deduplication of transcript segments by eliminating the seen map tracking and stableSegmentID generation. Remove segment replacement logic that attempted to update segments with similar timestamps. Remove sorting of segments in GetSegments and GenerateVTTForSegment, relying on insertion order instead. Simplify addSeg to only enforce MaxTranscriptEvents limit without deduplication checks.
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.