//视频/全屏 import win.ui; /*DSG{{*/ var winform = win.form(text="WebView2(web.view) 播放视频并支持全屏";right=1008;bottom=616) winform.add() /*}}*/ import web.form; var wb = web.form( winform ); //导出网页 JavaScript 可调用的 external 对象。 wb.external = { //浏览器仅仅是发出全屏指令,在这里用 aardio 控制全屏 fullscreen = lambda(fs) winform.fullscreen(fs) } import wsock.tcp.asynHttpServer; var httpServer = wsock.tcp.asynHttpServer(); httpServer.run( { ["/index.html"] = /** **/; ["/sintel.vtt"] = /** WEBVTT 0 00:00:11.400 --> 00:00:14.800 What brings you to the land of the gatekeepers? 1 00:00:18.000 --> 00:00:20.500 I'm searching for someone. 2 00:00:36.850 --> 00:00:39.750 A dangerous quest for a lone hunter. 3 00:00:40.950 --> 00:00:44.870 I've been alone for as long as I can remember. **/; }); wb.go( httpServer.getUrl("index.html") ); winform.show(); win.loopMessage();