ALAsset中缺少视频文件缩略图时间戳 [英] Video File thumbnail timestamp missing in ALAsset

查看:126
本文介绍了ALAsset中缺少视频文件缩略图时间戳的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从ALAsset库获取所有照片和视频缩略图。
我的代码工作正常,我正在获取照片和视频缩略图。但是在视频缩略图中缺少视频图标及其时间戳。

hi i am getting all photos and videos thumbnails from ALAsset library.
my code works fine i am getting photos and video thumbnail.but in video thumbnail missing Video icon and its time stamp.

[assetImageView setImage:[UIImage imageWithCGImage:[self.asset thumbnail]]];



i就像上面一样。我正在使用ELCImagePickerDemp API
< br>


i am getting like above..i am using ELCImagePickerDemp API



我需要得到这样的信息,我错过了时间和右下角的缩略图图标。任何帮助将不胜感激... THX

推荐答案

您注意到的资产库缩略图不包含符号和缩略图中的时间信息。因此,您必须使用从Alassetslibrary获得的信息在缩略图上自己绘制(检查ALAssetPropertyType和ALAseetPropertyDuration以获取您自己绘制这些信息所需的信息)。

The assetslibrary thumbnail as you noticed does not include the symbol and time information in the thumbnail. So you have to draw those yourself on the thumbnail using the information you get from Alassetslibrary (check ALAssetPropertyType and ALAseetPropertyDuration to get the info you need to draw these yourself).

干杯,

Hendrik

这篇关于ALAsset中缺少视频文件缩略图时间戳的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆