mathias.lin wrote:An additional question regarding video thumbnails:
How to get a thumbnail of a video that's stored on the SD card, not under resources? Or how to assign an/get the id of it? Does it even have one?
For the getThumbnail method, I'd need to pass the video id as parameter:
MediaStore.Video.Thumbnails.getThumbnail(crThumb, id, MediaStore.Video.Thumbnails.MICRO_KIND, options);
hi Mathias,
it's poorly documented, but my common sense tells me origId is not something similar to R class and its IDs.
i think its some kind of id assigned by MediaStore/MediaScanner
i didn't try it but it may be VideoColumns.MINI_THUMB_MAGIC
btw the same id is used to cancel any pending getThumbnail reaquest
after all raw files under res/raw folder are limited to afaik 1 MB and who uld like to see video that short?
greets