Call Microsoft Edge inside Hololens app?

泄露秘密 提交于 2019-12-08 04:48:25

问题


Does anyone know is it possible to call or embed Microsoft Edge Window in your Hololens app? For example, I have my Spatial mesh rendered and I'm detecting the flat surfaces. I'd like to be able to call new Edge Window with predefined url whenever I tap on a flat surface. Is there any way to invoke Edge Window this way inside the app?

Thanks in advance.


回答1:


If you are using Unity, you might be able to use Application.OpenUrl("www.google.nl"); in order to open the standard browser.

See: Unity reference OpenURL

I am not sure if this will close your application first before opening the browser, but i hope this works for you.

If it doesnt, maybe you can try starting a new process by using: System.Diagnostics.Process.Start("PathToProgram.exe");

See: MSDN Reference




回答2:


You cant open Edge inside your app, you can shut down your app and let the system start edge with a given URL.

If you need to get an image from a website you can use the unity www system:

https://docs.unity3d.com/ScriptReference/WWW-texture.html



来源:https://stackoverflow.com/questions/42877493/call-microsoft-edge-inside-hololens-app

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!