private async void _mainEngine_OnYoutubeChatterClientMessageRecieved(YoutubeVideoManager manager, YoutubeChatterClientMessageType messageType) { // populates the media information if it's not populated and the tracker send the video id in the url await manager.PopulateMediaInfo(); Application.Current.Dispatcher.Invoke((Action)async delegate { // show YesNow Dialog Asking user if he want download the rest of the video or not await _showDownloadAskingDialog(manager); }); }
private async void Instance_OnNewVideoLastPacketRecieved(YoutubeVideoManager manager) { // populates the media information if it's not populated and the tracker send the video id in the url await manager.PopulateMediaInfo(); Application.Current.Dispatcher.Invoke((Action)async delegate { // show YesNow Dialog Asking user if he want download the rest of the video or not await _showDownloadAskingDialog(manager); }); //_startDownloadingVideo(manager); }