Video frame cryptors may not be fully initialized when set_key() is first called during on_track_subscribed. Audio works immediately but video oscillates OK↔DEC_FAILED with the same key. Add staggered re-keying at 0.3s, 0.8s, 2s, 5s after video track subscription to ensure the key is applied after the frame cryptor is fully ready. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
69 KiB
69 KiB