private async void Window_Loaded(object sender, RoutedEventArgs e) { var interopWindow = new WindowInteropHelper(this); _hwnd = interopWindow.Handle; await _player.SetupAsync(); }
private async void Window_Loaded(object sender, RoutedEventArgs e) { var interopWindow = new WindowInteropHelper(this); _hwnd = interopWindow.Handle; await Task.WhenAll( Task.Run(async() => { await _player.SetupAsync(); }), Task.Run(async() => { await _rotor_player.SetupAsync(); })); //await _player.SetupAsync(); //await _rotor_player.SetupAsync(); }