English 中文(简体)
维梅奥视频在iPad UIWeb上不播放 观点
原标题:Vimeo videos not playing on iPad UIWebView

Ok so I ve looked around at the majority of other problems people are getting with vimeo and I don t think they ve hit upon the same issue I ve been getting.

When I open up a vimeo video on the Safari app on both my iPhone and iPad, they both work fine no problems.

现在,我制作了一个名为“i”的仪表,有“IDWeb”的电击机,并装上了一台冲锋枪机的录像机,也做了罚款。

问题在于,如果我现在在我的iPad上安装同样的镜子,冲动器拒绝装上录像,它只是hang子,而pin子则在缝上,但录像带上。

然而,现在我在此之后所做的事情形成了一个基本工具,把心灵的演员(URL)装进了国际房联网。 认为自己是本土的“iPad”器具,而不是“2x”的“iPad”。 令人惊讶的是,这种做法是罚款的。

因此,我现在把......混为一谈。 如果IPad没有为iPad提供设计的照片,那么它为什么不会播放真象的录像? 难道有一些特别的魔 the会落在幕后,可能打破这种状况吗?

此时此刻,我将不胜感激。

问题回答

执行代表方法:shouldStartLoadWithRequest,然后在该方法中仅仅发现所要求的URL是否为VIDEO。 如果是这样的话,请遵循下文所述为我工作的联系守则:

从服务器上播放一个电话的录像文件

This will be good in playing any video.

使用者可能会出现问题,而用户代理人在 Apple果设备上与Safissa s不同: IDWebView发送了一些导致Vimeo(有时是YouTube)解体的无效插图。

幸运的是,允许你使用以下设备压倒用户(C#,让我知道,如果不够清洁):

NSDictionary dictionary = NSDictionary.FromObjectAndKey(new NSString("Mozilla/5.0 (" + (UIDevice.CurrentDevice.Model.Contains("iPad") ? "iPad" : "iPhone" ) +  "; CPU OS 6_0 like Mac OS X) AppleWebKit/536.26 (KHTML, like Gecko) Version/6.0 Mobile/10A403 Safari/8536.25"), new NSString("UserAgent"));
NSUserDefaults.StandardUserDefaults.RegisterDefaults(dictionary);

This makes the videos play just fine.





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签