【发布时间】:2020-06-17 07:24:59
【问题描述】:
我在使用下面的嵌入代码通过 webview 嵌入我的 vimeo 视频时遇到问题。
> <iframe src="https://player.vimeo.com/video/{some-video-id}" width="640"
> height="360" frameborder="0" allow="autoplay; fullscreen"
> allowfullscreen></iframe>
谁能帮助我如何将上述代码与 flutter webview 小部件一起使用?
这是我的代码 sn-p
Container(
child:
WebView(
initialUrl: new Uri.dataFromString("<iframe src="https://player.vimeo.com/video/{some-video-id}" width="640"
height="360" frameborder="0" allow="autoplay; fullscreen"
allowfullscreen></iframe> </p>",
mimeType: "text/html", encoding: utf8).toString(),
javascriptMode: JavascriptMode.unrestricted,
onWebViewCreated: (WebViewController webViewController) {
_controller.complete(webViewController);
},
),
),
);
????????这根本不起作用。 我正在努力让它工作很长时间,如果有人可以帮助我,这对我来说意味着世界!
谢谢您的宝贵时间!????????
【问题讨论】:
标签: android flutter dart webview