How to start a WinRT application from a web application?

Suppose I have a website to host a video, for example youtube. When a user clicks on a link on a site, I want to open the WinRT application for better viewing, how would I do it?

How to transfer parameters to the WinRT application so that it knows which video it should broadcast? I need to be able to go back and forth, so I guess I can submit a hyperlink to return to the site from the application.

Another possibility is to implement the application on the site itself. How will it work? Can you still implement the applet style app on the site itself (e.g. flash / silverlight)?

+6
source share
2 answers

You can run the Windows Store application, given that you know the URI scheme associated with this application. For example, the Games application has xboxgames: associated with it. If you embed a link with this URI scheme, the shell will treat it as an internal link. More details here .

enter image description here

You may also be interested in learning more about how to connect your site to the Windows Store app here .

+9
source

Edit : it is possible to have a linked URL: see accepted answer from Den Delimarsky.

Alternatively, the Windows Store application may declare file type associations. In this way, you can force the user to upload a file (for example, "video.customExtension"), which may contain information such as the video that the application should play. Same as Office Live Meeting, when you download a meeting file to start a meeting.

If the user downloads this file from your site and that he does not have the corresponding application, he will be asked to find an application that can open this file in the store and he will find your application.

And finally, no, you cannot use the Windows 8 Store app on a web page.

+2
source

Source: https://habr.com/ru/post/927683/


All Articles