dourg
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by dourg
-
-
Q: I use unimHTMLFrame . and a unimbutton . on umimButton onclick event:
procedure TMainmForm.UnimBitBtn1Click(Sender: TObject);
begin
with UnimHTMLFrame1.HTML do
Begin
Add('<video style="width:100%; height:auto; object-fit: cover" src="files/1.MP4" controls > </video>')
End;
end;It work ok on Android mobile phone . But on IOS it does not work . WHY?
MP4 在Android下正常,IOS下不正常
in Chinese
Posted
不知道怎么添加附件。
代码很简单。 放一个unimHTMLFrame 放一个unimButton. 点击 button 运行下面的代码:
begin
with UnimHTMLFrame1.HTML do
Begin
Add('<video style="width:100%; height:auto; object-fit: cover" src="files/1.MP4" controls > </video>')
End;
在Android 手机上一切正常 在苹果手机上,视频就播放不出来。
奇怪的是,为了测试,我写了一个静态的页面。
<html>
<body>
<video style="object-fit: cover"; src="1.MP4" width="100%" controls > </video>
</body>
</html>
这个HTML文件,在苹果手机和Android 手机上又都正常。 在知道是什么原因。
另外这个论坛 不会用,不知道怎么添加附件。甚至之前的贴子都不知道如何回复。 版本:1.90.0.1503。