使用xamarin在ios 8 uiwebview中播放视频时出现问题

使用xamarin在ios 8 uiwebview中播放视频时出现问题,ios,uiwebview,xamarin,Ios,Uiwebview,Xamarin,我们有一个应用程序monotouch/ios/xamrin.ios,你喜欢叫它什么,它使用uiwebview进行视频播放。我们创建以下html <html> <head> <style type="text/css"> body {background-color: transparent; color: white;} </style> </head> &

我们有一个应用程序monotouch/ios/xamrin.ios,你喜欢叫它什么,它使用uiwebview进行视频播放。我们创建以下html

<html>
    <head>
        <style type="text/css">
            body {background-color: transparent; color: white;}
        </style>
    </head>
    <body style="margin:0">
        <video width="100%" height="100%" controls="" autoplay="" name="media">
            <source src="http://onsport.dk/7718125/8254704/f6a4e032d96f26dc127ded126a179e93/video_hd/kalormen-video.mp4" type="video/mp4">
        </video>
    </body>
</html>
并像LoadHtmlStringcontent,null;一样将其加载到我们的Web视图中;。它一直在发挥应有的作用,但现在已经不起作用了。我的意思是播放按钮出现,但单击时什么也没有发生。我不确定这是否是由最新的ios8更新引起的,但这似乎是与以前唯一的区别。 我已经测试了html和html加载良好


有人对我遗漏的内容有什么建议吗。

你最近更新了你的Xamarin吗?也许这就是问题所在。我刚刚在Xamarin.ios8.4中尝试了你的代码,在那里它工作得很好。新版本是8.6I,已更新为最新版本。然而,我发现如果我将宽度和高度设置为固定数量的像素,而不是百分比,它就会起作用。很奇怪