我希望为Chrome操作系统打造一个可以全屏运行视频的打包应用。视频在线托管,并通过webview加载。在尝试全屏显示视频时,它会闪烁一小段时间到窗口的完整大小,并返回到常规大小。在定义“全屏”权限后,我的IDE警告我说它不存在。有什么建议吗?
的manifest.json:
{
"manifest_version": 2,
"name": "Browser Sample",
"minimum_chrome_version": "43.0.2357",
"version": "2.1",
"icons": {
"16": "icon_16.png",
"128": "icon_128.png"
},
"app": {
"background": {
"scripts": ["main.js"]
}
},
"permissions": [
"webview",
"notifications",
"contentSettings",
"fullscreen",
]
}
的index.html:
<!DOCTYPE html>
<html>
<body>
<webview src="https://www.youtube.com/">
</webview>
</body>
</html>