view = WebKit.WebView()
uri = 'transformice.html'
uri = os.path.realpath(uri)
uri = urllib.parse.ParseResult('file', '', uri, '', '', '')
uri = urllib.parse.urlunparse(uri)
view.load_uri(uri)
HTML:
<object id="swf1" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" height="100%" id="Transformice" align="middle">
<param name="allowScriptAccess" value="always" />
<param name="movie" value="TransformiceChargeur.swf" />
<param name="menu" value="true" />
<param name="quality" value="high" />
<param name="bgcolor" value="#6A7495" />
<embed id="swf2" src="TransformiceChargeur.swf" wmode="direct" menu="true" quality="high" bgcolor="#6A7495" width="100%" height="100%" name="Transformice" align="middle" swLiveConnect="true" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
如何在 GTK3/WebKit 应用程序中显示来自对象 html 的 SWF,因为目前这不起作用。它显示缺少插件,所以我假设我需要添加某种插件。