如果播放器被包含在iframe里,尝试在iframe上添加allowfullscreen属性。

为了完善的浏览器兼容性,它应该是这样:


  1. MacPlayer.HTML = '<iframe width="100%" height="'+MacPlayer.Height+'" src="/static/player/18ma-play/?url='+MacPlayer.PlayUrl+'" allowtransparency="true" allowfullscreen="true" marginWidth="0" frameSpacing="0" marginHeight="0" frameBorder="0" scrolling="no" vspale="0" noResize></iframe>';
  2. MacPlayer.Show();
复制代码