手机图库里的videovideo ts是什么意思思?

小米手机内储存的文件的英文video是什么意思?_百度知道
小米手机内储存的文件的英文video是什么意思?
在我所见过的手机目录里也都是视频的意思,不过这个单词是视频的意思。没用过小米手机视频
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁iOS开发之获取系统相册中的图片与视频(内带url转换)
@话不多说,直接上代码
// 必须导入
// 照片原图路径
#define KOriginalPhotoImagePath
[[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@OriginalPhotoImages]
// 视频URL路径
#define KVideoUrlPath
[[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0] stringByAppendingPathComponent:@VideoURL]
// caches路径
#define KCachesPath
[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) objectAtIndex:0]
// MainViewController
@interface MTHMainViewController ()
@property (nonatomic,strong) MTHNextViewController *nextVC;
@property (nonatomic,strong) NSMutableArray
@property (nonatomic,strong) UIImageView
@implementation MTHMainViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
// Custom initialization
- (void)viewDidLoad
[super viewDidLoad];
// Do any additional setup after loading the view.
self.navigationItem.title = @D
self.view.backgroundColor = [UIColor clearColor];
self.groupArrays = [NSMutableArray array];
// 测试BarItem
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@测试 style:UIBarButtonItemStylePlain target:self action:@selector(testRun)];
// 测试手势
UIPanGestureRecognizer *panRecognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(didClickPanGestureRecognizer:)];
[self.navigationController.view addGestureRecognizer:panRecognizer];
// 图片或者视频的缩略图显示
self.litimgView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 200, 120, 120)];
[self.view addSubview:_litimgView];
- (void)testRun
__weak MTHMainViewController *weakSelf =
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
ALAssetsLibraryGroupsEnumerationResultsBlock listGroupBlock = ^(ALAssetsGroup *group, BOOL *stop) {
if (group != nil) {
[weakSelf.groupArrays addObject:group];
[weakSelf.groupArrays enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
[obj enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) {
if ([result thumbnail] != nil) {
if ([[result valueForProperty:ALAssetPropertyType] isEqualToString:ALAssetTypePhoto]){
NSDate *date= [result valueForProperty:ALAssetPropertyDate];
UIImage *image = [UIImage imageWithCGImage:[result thumbnail]];
NSString *fileName = [[result defaultRepresentation] filename];
NSURL *url = [[result defaultRepresentation] url];
int64_t fileSize = [[result defaultRepresentation] size];
NSLog(@date = %@,date);
NSLog(@fileName = %@,fileName);
NSLog(@url = %@,url);
NSLog(@fileSize = %lld,fileSize);
// UI的更新记得放在主线程,要不然等子线程排队过来都不知道什么年代了,会很慢的
dispatch_async(dispatch_get_main_queue(), ^{
self.litimgView.image =
else if ([[result valueForProperty:ALAssetPropertyType] isEqualToString:ALAssetTypeVideo] ){
// 和图片方法类似
ALAssetsLibraryAccessFailureBlock failureBlock = ^(NSError *error)
NSString *errorMessage =
switch ([error code]) {
case ALAssetsLibraryAccessUserDeniedError:
case ALAssetsLibraryAccessGloballyDeniedError:
errorMessage = @用户拒绝访问相册,请在&隐私&中开启;
errorMessage = @Reason unknown.;
dispatch_async(dispatch_get_main_queue(), ^{
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@错误,无法访问!
message:errorMessage
delegate:self
cancelButtonTitle:@确定
otherButtonTitles:nil, nil];
[alertView show];
ALAssetsLibrary *assetsLibrary = [[ALAssetsLibrary alloc]
[assetsLibrary enumerateGroupsWithTypes:ALAssetsGroupAll
usingBlock:listGroupBlock failureBlock:failureBlock];
按照上面方法直接取出来的路径是无法传输的,必须自己转化成NSData对象重新写入沙盒路径
// 将原始图片的URL转化为NSData数据,写入沙盒
- (void)imageWithUrl:(NSURL *)url withFileName:(NSString *)fileName
// 进这个方法的时候也应该加判断,如果已经转化了的就不要调用这个方法了
// 如何判断已经转化了,通过是否存在文件路径
ALAssetsLibrary *assetLibrary = [[ALAssetsLibrary alloc] init];
// 创建存放原始图的文件夹---&OriginalPhotoImages
NSFileManager * fileManager = [NSFileManager defaultManager];
if (![fileManager fileExistsAtPath:KOriginalPhotoImagePath]) {
[fileManager createDirectoryAtPath:KOriginalPhotoImagePath withIntermediateDirectories:YES attributes:nil error:nil];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
if (url) {
// 主要方法
[assetLibrary assetForURL:url resultBlock:^(ALAsset *asset) {
ALAssetRepresentation *rep = [asset defaultRepresentation];
Byte *buffer = (Byte*)malloc((unsigned long)rep.size);
NSUInteger buffered = [rep getBytes:buffer fromOffset:0.0 length:((unsigned long)rep.size) error:nil];
NSData *data = [NSData dataWithBytesNoCopy:buffer length:buffered freeWhenDone:YES];
NSString * imagePath = [KOriginalPhotoImagePath stringByAppendingPathComponent:fileName];
[data writeToFile:imagePath atomically:YES];
} failureBlock:nil];
// 将原始视频的URL转化为NSData数据,写入沙盒
- (void)videoWithUrl:(NSURL *)url withFileName:(NSString *)fileName
// 解析一下,为什么视频不像图片一样一次性开辟本身大小的内存写入?
// 想想,如果1个视频有1G多,难道直接开辟1G多的空间大小来写?
ALAssetsLibrary *assetLibrary = [[ALAssetsLibrary alloc] init];
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
if (url) {
[assetLibrary assetForURL:url resultBlock:^(ALAsset *asset) {
ALAssetRepresentation *rep = [asset defaultRepresentation];
NSString * videoPath = [KCachesPath stringByAppendingPathComponent:fileName];
char const *cvideoPath = [videoPath UTF8String];
FILE *file = fopen(cvideoPath, a+);
if (file) {
const int bufferSize = 1024 * 1024;
// 初始化一个1M的buffer
Byte *buffer = (Byte*)malloc(bufferSize);
NSUInteger read = 0, offset = 0, written = 0;
NSError* err =
if (rep.size != 0)
read = [rep getBytes:buffer fromOffset:offset length:bufferSize error:&err];
written = fwrite(buffer, sizeof(char), read, file);
} while (read != 0 && !err);//没到结尾,没出错,ok继续
// 释放缓冲区,关闭文件
free(buffer);
buffer = NULL;
fclose(file);
file = NULL;
} failureBlock:nil];
(window.slotbydup=window.slotbydup || []).push({
id: '2467140',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467141',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467143',
container: s,
size: '1000,90',
display: 'inlay-fix'
(window.slotbydup=window.slotbydup || []).push({
id: '2467148',
container: s,
size: '1000,90',
display: 'inlay-fix'oppo手机照片文件名的含义_百度知道
oppo手机照片文件名的含义
T卡中存放一些系统附带文件,以支持部分手机功能和应用。说明如下:DATA (tts)
语音文件mythroad:
存放手机QQ、QQ网游、多媒体电子书、股票机数据文件uumap:
存放图龙地图数据文件Games:
存放经典游戏模拟器数据文件Video:
存放视频文件My Music:
存放音乐文件WMD_DATA:
存放来去电归属地归属地数据文件数码复读:
存放数码复读数据文件学习辞典:
存放学习辞典数据文件Application:
存放游戏和应用程序数据文件LVM:
存放本地语音信箱数据文件Ebook\cathyebk
存放电子书数据文件photos:
存放图片UmPhone
电子名片或电话本PCcamera driver
照相 摄像的驱动USB driver
usb 连接的驱动Phonesuite
pc套件PhoneSuite
手机电话薄或管理软件。
其他类似问题
为您推荐:
大概意思是“照片”“图片”“相册”。
我问的是含义你说的太笼统
那就不知道了,看看别人的回答吧。
oppo手机的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁为什么删除了手机里的照片和视频还会在qq里发送照片出现_百度知道
为什么删除了手机里的照片和视频还会在qq里发送照片出现
打开文件夹一个一个翻;Tencent&#47手机储存盘/MobileQQ/shortvideo里
其他类似问题
为您推荐:
其他3条回答
因为你是删了但是下载了还会有
你可以再删一次
因为你的文件夹里还没有删除了
ukvhljvvhhkj
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁手机文件夹代表的意思_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
手机文件夹代表的意思
上传于||文档简介
&&你​还​在​为​清​理​手​机​内​存​时​不​知​什​么​文​件​可​以​删​除​时​,​这​里​可​以​为​你​提​供​一​些​帮​助
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
下载文档到电脑,查找使用更方便
还剩27页未读,继续阅读
你可能喜欢}

我要回帖

更多关于 360video是什么意思 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信