如何运行"3gp,FLV,AVI"iOS中的AVPLAYER或MPMoviePlayerViewController中的视频格式? [英] how to run "3gp, FLV, avi" video format in AVPLAYER or MPMoviePlayerViewController in iOS?

查看:96
本文介绍了如何运行"3gp,FLV,AVI"iOS中的AVPLAYER或MPMoviePlayerViewController中的视频格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在我的应用程序中播放3gp,FLV,avi视频文件格式.我已经搜索了很多.

I need to play 3gp, FLV, avi Video file format in my application. I had searched lot about it.

有一些库,例如"FFmpeg"库.但是找不到任何示例代码.

Got some library like "FFmpeg" Library. But could not find any sample code for it.

任何其他方式也将受到赞赏.

Any other ways for it are also appreciated.

有人做过吗?

我什至不确定在iOS中是否可行.

I am even not sure that if it is possible or not in iOS.

请给我解决方法.

更新:

我在 AVquePlaye 中尝试了一个3gp视频,但未在我的代码中播放

I tried one 3gp Video in my AVquePlaye but it is not play in my code,

虽然我在 iPhone WhatsApp 中使用了相同的视频,但是令人惊讶的是,视频正在那里播放.

While i use same Video in WhatsApp in my iPhone, Surprisingly video is playing there.

推荐答案

我发现在模拟器中播放3gp不起作用(因为在我的Mac上,它使用不支持3gp的QuickTime).

I found out that playing 3gp in the SIMULATOR does not work (because on my mac it uses QuickTime which does not support 3gp, I guess).

当我在真实设备上运行我的应用程序时,它可以使用默认视频播放器播放3gp视频.所以要当心;)

When I run my app on a real device, it CAN play 3gp video, using the default video player. So be warned ;)

这篇关于如何运行"3gp,FLV,AVI"iOS中的AVPLAYER或MPMoviePlayerViewController中的视频格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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