Repository navigation
fix: 视频渲染兜底图失效 - #3344
fix: 视频渲染兜底图失效#3344
Conversation
|
你好 @xxxxZ-zhang,非常感谢你的贡献. Hello, @xxxxZ-zhang, Thanks for your contribution. In order to make the code more robust, please add the corresponding unit tests, and update the docs if there are API changes. |
There was a problem hiding this comment.
Code Review
This pull request introduces a fallback mechanism for video rendering, allowing a placeholder image to be displayed if a video fails to load or times out. It also prevents the preview interaction and play button from appearing when a fallback image is active. However, a critical issue was identified where the use of a class-level property isFallback in the VideoRenderer singleton will cause race conditions during concurrent cell rendering. Additionally, it is recommended to replace the hardcoded timeout for fallback images with a named constant to improve maintainability.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## next #3344 +/- ##
==========================================
+ Coverage 75.77% 78.57% +2.80%
==========================================
Files 257 224 -33
Lines 11994 12535 +541
Branches 2464 2848 +384
==========================================
+ Hits 9088 9850 +762
+ Misses 1398 972 -426
- Partials 1508 1713 +205 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Size Change: +476 B (+0.06%) Total Size: 745 kB 📦 View Changed
ℹ️ View Unchanged
|
136daf3 to
8fad659
Compare
|
🎉 This PR is included in version @antv/s2-v2.7.1-alpha.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version @antv/s2-v2.7.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
👀 PR includes
✨ Feature
🎨 Enhance
🐛 Bugfix
🔧 Chore
📝 Description
🖼️ Screenshot
🔗 Related issue link
🔍 Self-Check before the merge