Sandeep
Sandeep

Reputation: 2121

UWP hosted web app launch native view

I have an UWP app which can play .ism/Manifest videos when url is provided and also can download if needed.

I have a webapp which i want to create as a hosted UWP app so that when clicked on play redirects view to native view and plays the video.

Could someone point me out to some tutorial or any reference in this context.

Cheers.

Upvotes: 0

Views: 66

Answers (1)

Pratyay
Pratyay

Reputation: 1301

For launching your UWP application from your web app you need to :

  1. Create a custom uri scheme for your application.

    What this will do is that once the system identifies your application's unique uri scheme it will launch your application.

    Tutorial on how to create a custom uri scheme for your application

    With the uri you can pass parameters (in your case the url for the .ism). You need to handle the logic in the OnActivated event handler of your application and play the video.

    Handle URI Activation

  2. Add code in your web app to launch your app-specific uri.

    Tutorial here : Link

Hope this helps..

Upvotes: 1

Related Questions