An Android video thumbnail picker
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Add default start position Feb 8, 2019
app Fix thumbnail position reference Feb 8, 2019
gradle/wrapper Initial commit Jan 29, 2019
sample Tidy sample Feb 1, 2019
.gitignore Initial commit Jan 29, 2019 Update Feb 1, 2019
build.gradle Initial commit Jan 29, 2019 Initial commit Jan 29, 2019
gradlew Initial commit Jan 29, 2019
settings.gradle Initial commit Jan 29, 2019
thumby.gif Add files via upload Feb 1, 2019


Thumby is an easy-to-use, drop in video thumbnail picker for android.


Using Thumby

As shown in the sample, you can launch thumby and pass in the desired uri like so:

startActivityForResult(ThumbyActivity.getStartIntent(this, someUri), RESULT_CODE_PICK_THUMBNAIL)

Once a thumbnail is selected, you can make use of the data that thumby returns. This is both the Uri of the video and the location of the thumbnail. You can then use this data to retrieve the frame for the given video, this can be done using a Thumby utility class:

val imageUri = data?.getParcelableExtra(EXTRA_URI) as Uri
val location = data.getLongExtra(EXTRA_THUMBNAIL, 0)
val bitmap = ThumbyUtils.getBitmapAtFrame(this, imageUri, location, someWidth, someHeight)