如何通过缓冲将视频从URL播放到iphone应用程序? [英] How to play videos from a URL into an iphone app with buffering?

查看:96
本文介绍了如何通过缓冲将视频从URL播放到iphone应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个iphone应用程序,需要从URL播放视频。

I have an iphone app which requires the videos to be played from the URL.

我不想下载整个视频,因为它最终会减慢我的应用程序。

I dont want to download the whole videos just as it eventually slows down my app.

我希望以介于两者之间的方式播放视频然后播放。

I want to play the videos in a way that it buffers in between and then plays.

通过缓冲将视频从URL播放到iphone应用程序?

How to play videos from a URL into an iphone app with buffering?

推荐答案

尝试这样....

NSString *url = @"www.youtube.com/xyz";
NSString *htmlString =[NSString stringWithFormat:@"<object width='212' height='172'><param name='movie' value='%@'></param><param name='wmode' value='transparent'></param><embed src='%@'type='application/x-shockwave-flash' wmode='transparent' width='980' height='965'></embed></object>",url,url];

[myWebview loadHTMLString:htmlString baseURL:nil];

这篇关于如何通过缓冲将视频从URL播放到iphone应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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