Kotlin Video SDK
An Android SDK that puts ads into your video player: a strip over the content, a card while it is paused, or a full-screen spot between episodes.
The three formats
Overlay
A strip across the player while the content plays. Ends by itself after its duration, or when the viewer closes it.
Pause
A card, or the full player, while the content is paused. Stays until the viewer resumes or you dismiss it.
Linear
A full-screen video at a moment you choose: between episodes, before a premium one. Skippable when the advertiser allows.
Requirements
- Android 7.0 (API 24)+
compileSdk34+ (35 with Media3 1.6 or later)- JDK 17 (Android Gradle Plugin 8)
- Kotlin 2.0 or later; Media3 for the optional player adapter
You’ll need a publisher account to obtain your
publisherToken.Installation
Add the dependency, initialize the SDK, and what it adds to your manifest.
Showing your first ad
Create the video’s ads, get an ad, load it, show it: overlay, pause and linear.
API reference
Every type, method, callback and error.
Your player
Media3, TTSDK, Tencent Cloud Player, or any player through ContentPlayer.
Jetpack Compose
rememberVideoAds and VideoAdHost from so.kontext:video-compose.
Guides
Several ads at once, your own auction, no-fill, insets, feeds, the next episode, the viewer, the screen’s lifecycle.
Example app
An ExoPlayer app with all three formats, runnable against your publisher token.