Commit b835995
authored
fix: Enable E2EE for VP9 codec (#953)
### Problem
While using the Flutter SDK with JS SDK and with E2EE enabled, the video
from Web can not be decrypted by the Flutter app.
## Summary
Enables end-to-end encryption (E2EE) for VP9 codec. Previously, E2EE was
skipped for all SVC codecs. This aligns the Flutter SDK with the JS SDK,
where E2EE works with VP9 codec.
## Changes
Removed `isSVCCodec()` and use `isAV1Codec()` to enable E2EE setup for
VP9 codec in `LocalTrackPublishedEvent` handler
Removed `isSVCCodec()` and use `isAV1Codec()` to enable E2EE setup for
VP9 codec in `TrackSubscribedEvent` handler
Is there any specific reason why E2EE is disabled for SVC codecs?
I tried VP9 with this patch and the VP9 video from Web can be decrypted
by Flutter app.1 parent db96f8f commit b835995
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
570 | 572 | | |
571 | 573 | | |
572 | 574 | | |
| |||
0 commit comments