예제 #1
0
        protected async override void OnAppearing()
        {
            base.OnAppearing();

            statusBar.Hide();
            screen.Landscape();
            DeviceDisplay.KeepScreenOn = true;

            CrossMediaManager.Current.Notification.Enabled = false;
            var item = await CrossMediaManager.Current.Extractor.CreateMediaItem(PlayUrl);

            item.MediaType = MediaType.Hls;
            await CrossMediaManager.Current.Play(item);
        }