我相信这是从早期的iOS测试版改变的新行为.
视频播放,但全屏显示.例如,使用YouTube帮助程序库,调用
[self.playerView loadWithVideoId:@“M7lc1UVf-VE”playerVars:@ {@“playsinline”:@(1)}];
任何想法如何让视频再次内联播放?
解决方法
A note about the playsinline attribute: this attribute has recently
been added to the HTML specification,and WebKit has adopted this new
attribute by unprefixing its legacy webkit-playsinline attribute. This
legacy attribute has been supported since iPhoneOS 4.0,and accordance
with our updated unprefixing policy,we’re pleased to have been able
to unprefix webkit-playsinline. Unfortunately,this change did not
make the cut-off for iOS 10 Developer Seed 2. If you would like to
experiment with this new policy with iOS Developer Seed 2,the
prefixed attribute will work,but we would encourage you to transition
to the unprefixed attribute when support for it is available in a
future seed.
编辑:现在已于2016年8月25日修复!欢呼!