In this article, you will learn how to use a simple adaptive streaming URL in UWP with XAML and C#
Before reading this article, please go through the article, mentioned below.
Adaptive streaming is a process, which adjusts the quality of a video delivered to a Web page, based on changing the network conditions to ensure the best possible viewer experience. After reading this article, you will know how to use a simple adaptive streaming URL in Universal Windows apps development with XAML and Visual C#. Here, the input is a Azure Media Service URL from Microsoft. The important tools mentioned below are required to develop UWP:
Now, we can discuss step by step app development. Step 1 Open Visual Studio 2015 -> Start -> New Project-> Select Universal (under Visual C#->Windows)-> Blank app -> Give the suitable name for your app (UWPSimpleAdaMedStream)->OK. Step 2 After choosing the Target and minimum platform version your Windows Universal Application will support, the project creates App.xaml and MainPage.xaml. Step 3 Add TextBlock control, change the name and text property for the title. Step 4 Add a MediaPlayerElement control to play an Adaptive streaming video, <MediaPlayerElement x:Name="MPEAdaptive" HorizontalAlignment="Stretch" AreTransportControlsEnabled="True"/> Note Automatically, the code, mentioned below will be generated in XAML code view, after we are finished in the design view.
Step into Windows 10 UWP