【发布时间】:2021-04-09 09:24:54
【问题描述】:
我正在尝试在wxHtmlWindow 中设置 html 页面。它正在加载除 html video 标签之外的所有基本标签。
注意:我的带有相同视频标签的 HTML 文件工作正常(正在播放视频)。
html = new wxHtmlWindow(this);
html -> SetRelatedFrame(this, _("wxHTML Demo: '%s'"));
#if wxUSE_STATUSBAR
html -> SetRelatedStatusBar(1);
#endif // wxUSE_STATUSBAR
html->SetPage("<html><head><title>File System Example</title>"
"<link rel='stylesheet' type='text/css' href='memory:test.css'>"
"</head><body><h1>Page 2</h1>"
"<p><a href='memory:page1.htm'>Page 1</a> was better.</p>"
"<video width='700px' controls> <source src='myvideo.mp4' type='video/mp4' /></body></html>");
【问题讨论】:
-
html 缺少
</video>结束标记。
标签: c++ user-interface html5-video wxwidgets wxtextctrl