Beispiel #1
0
        private async Task PlaybackAssetAsync()
        {
            if (checkBoxPreviewStream.Checked && checkBoxTrimming.Checked && _tempStreamingLocator != null)
            {
                Asset myAsset = _selectedAssets.FirstOrDefault();

                Uri myuri = await AssetInfo.GetValidOnDemandURIAsync(myAsset, _amsClientV3, _tempStreamingLocator.Name);

                if (myuri != null)
                {
                    string myurl = await AssetInfo.DoPlayBackWithStreamingEndpointAsync(typeplayer : PlayerType.AzureMediaPlayerFrame, path : AssetInfo.RW(myuri, https : true).ToString(), DoNotRewriteURL : true, client : _amsClientV3, formatamp : AzureMediaPlayerFormats.Auto, technology : AzureMediaPlayerTechnologies.Auto, launchbrowser : false, UISelectSEFiltersAndProtocols : false, mainForm : _mainform);

                    webBrowserPreview.Url = new Uri(myurl);
                }
                else
                {
                    webBrowserPreview.Url = null;
                }
            }
            else
            {
                webBrowserPreview.Url = null;
            }
        }