1

I've a few video files urls that my application plays, using the html video tag.

I would like to shows tiles of those videos with an snapshot/thumbnail of it. I've been looking at the Windows.Media.Capture.MediaCapture class and it seems it doesn't support urls.

How can I do this?.

Thanks.

4

1 回答 1

0

根据需要编辑getThumbnailAsync参数以获得您想要的。

var openPicker = new Windows.Storage.Pickers.FileOpenPicker();
openPicker.pickSingleFileAsync().then(function (storageFile) {
    if (storageFile) {

        storageFile.getThumbnailAsync(
            Windows.Storage.FileProperties.ThumbnailMode.musicView,
            100,
            Windows.Storage.FileProperties.ThumbnailOptions.useCurrentScale).then(
                function (storageItemThumbnail) {
                // Add code to process thumbnail
                });

    } else {
        // No file
    }
});
于 2012-07-24T19:19:48.457 回答