GPU accelerate code generated video RRS feed

  • Question

  • I want to enable GPU acceleration for a video element I make by the following code:

          MediaElement Element = new MediaElement();
          Element.Source = new Uri(Link);
          Element.Width = 640;
          Element.Height = 385;
          Element.AutoPlay = true;

    How can I edit my code so it got GPU acceleration? I allready added the <param name="EnableGPUAcceleration" value="true" /> code, but how can I enable gpu acceleration for the generated MediaElement? Have seen codes for enabling this on objects in XAML, but not in C# code.

    - Martin

    Saturday, November 27, 2010 9:55 PM