Update ReactVideoView.cs

This commit is contained in:
Eric Rozell 2016-11-10 13:50:50 -08:00 committed by GitHub
parent 1ab222d251
commit 5af9e26233

View File

@ -315,7 +315,7 @@ namespace ReactNativeVideo
private static async void RunOnDispatcher(DispatchedHandler action) private static async void RunOnDispatcher(DispatchedHandler action)
{ {
await CoreApplication.GetCurrentView().Dispatcher.RunAsync(CoreDispatcherPriority.Normal, action).AsTask().ConfigureAwait(false); await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, action).AsTask().ConfigureAwait(false);
} }
class ReactVideoEvent : Event class ReactVideoEvent : Event