Skip to content
An Android video thumbnail picker
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Add missing permission Mar 4, 2019
app Add missing permission Mar 4, 2019
gradle/wrapper Initial commit Jan 29, 2019
sample Tidy sample Feb 1, 2019
.gitignore Initial commit Jan 29, 2019
README.md Update README.md Feb 1, 2019
build.gradle Initial commit Jan 29, 2019
gradle.properties Initial commit Jan 29, 2019
gradlew Initial commit Jan 29, 2019
gradlew.bat Initial commit Jan 29, 2019
settings.gradle Initial commit Jan 29, 2019
thumby.gif Add files via upload Feb 1, 2019

README.md

Thumby

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

Thumby

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)
You can’t perform that action at this time.