Embedded to Embeddable: The Story Kit Story
summary
Rewrites Snapchat’s embedded story player into a standalone SDK that actually plays snaps: downloads, decrypts, caches and renders images and videos with ExoPlayer for video and Picasso for images, and exposes a preloading API and lifecycle-aware hooks. Details include disk caching, progressive download, custom ExoPlayer decrypting data source, a three-page player controller for smooth transitions, a Glide→Picasso switch to avoid version conflicts, initial coroutines then Rx for preloading, Dagger 2, consumer ProGuard rules, and a multi-month rewrite.
AI-written summary · about
chapters (15)
- 0:00Introduction and agenda
- 1:19What is Snap Kit
- 3:07App stories and Story Kit
- 4:51Building Story Kit from scratch
- 5:33Media handling with ExoPlayer and Picasso
- 9:54ExoPlayer flexibility and customization
- 11:02Snap page lifecycle and rendering
- 14:34Navigating between snaps
- 17:43Story Kit in Triller demo
- 18:03Lessons learned building SDKs
- 20:31API design pitfalls and fixes
- 24:06Dependency selection challenges
- 26:12Developer feedback importance
- 26:34Conclusion and Q&A intro
- 27:55Q&A session
