那位大仙给个ipad播放视频例子。。? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 http://www.cocoachina.com/bbs/read.php?tid-2970-keyword-%CA%D3%C6%B5%B2%A5%B7%C5.html 视频例子么!用到MPMoviePlayerController 用这个! MPmoviePlayerController *movePlayer 创建,之后 [moviePlyaer play]就能播放了,具体其他操作函数,你去看看相关API函数吧 - (void)videoPlay{ NSString *path=[[NSBundle mainBundle]pathForResource:@"my1" ofType:@"m4v"]; NSURL * url1=[NSURL fileURLWithPath:path];//加载播放路径 MPMoviePlayerViewController * player=[[MPMoviePlayerViewController alloc]initWithContentURL:url1];//实例化播放对象 [self presentMoviePlayerViewControllerAnimated:player]; player.moviePlayer.movieSourceType=MPMovieSourceTypeUnknown;//播放类型 [player.moviePlayer play];//播放} download apple ios sample 加载播放路径,这个播放路径是指什么啊,URL嘛?rstp://还是http://,我碰到这样的问题,视频可以在quicktime中播放,但浏览器播放不成功。谢谢 ViewController的菜鸟问题 如何强制某个页面不能横竖屏切换? Nsstring转换成ascii码问题 使用ShareSDK将信息分享到qq空间出现错误 如何在装Window的PC上面安装用于iPhone的mac虚拟机??? NSCondition创造的线程 他的生命周期在哪里 移动手机链接服务器问题 IOS 小白求大神帮忙,为什么返回按钮会报exc_bad_access 客户端从服务器分页获取列表,如何保证流量最少,且客户端和Server数据的一致性? app注册短信验证服务商 游戏做ipad和iphone通用版本 精灵坐标怎么加载~ 关于iOS 5通知
之后 [moviePlyaer play]就能播放了,具体其他操作函数,你去看看相关API函数吧
{
NSString *path=[[NSBundle mainBundle]pathForResource:@"my1" ofType:@"m4v"];
NSURL * url1=[NSURL fileURLWithPath:path];//加载播放路径
MPMoviePlayerViewController * player=[[MPMoviePlayerViewController alloc]initWithContentURL:url1];//实例化播放对象
[self presentMoviePlayerViewControllerAnimated:player];
player.moviePlayer.movieSourceType=MPMovieSourceTypeUnknown;//播放类型
[player.moviePlayer play];//播放
}
加载播放路径,这个播放路径是指什么啊,URL嘛?rstp://还是http://,我碰到这样的问题,视频可以在quicktime中播放,但浏览器播放不成功。谢谢