Login
 
Archive
Links
Search
Blog List
There are no categories in this blog.
 
Nov 14

Written by: Jeremiah Morrill
11/14/2008 9:26 AM 

I just committed some bug fixes to CodePlex.  I now support MTA and STA graphs.  Before I only supported MTA because a DirectShow thread that came through the VMR9Allocator (in PresentImage) needed to touch some of the COM objects.  This was overcome by making the VMR9Allocator inherit from the DispatcherObject and any calls that need to touch the COM objects are dispatched.  Hopefully this fixes any RaceOnRCW MDA errors anyone was getting.

Also, HdWagner (of Meedios fame), wrote a modification to use a NativeWindow class to generate hWnds.  Before I was using the MainWindow hWnd of the application.  This could be bad in multi-windowed WPF applications.  Thanks HdWagner!

There are some other misc bug fixes, such as the default audio level, possible crash points, etc.  None of the API has changed so it should be a drop in for any of your projects.  Let me know if you guys have any issues with this new build.

-Jer

Tags:

8 comment(s) so far...

Re: WPF MediaKit bug fixes submitted to CodePlex

Hello Jeremiah,

Thanks a lot for this update! I go download it right now. I will let you know how things went!

Keep up the good work.


Damien

By Damien on   11/14/2008 9:45 AM

Re: WPF MediaKit bug fixes submitted to CodePlex

Jeremiah,

Thanks for all you're hard work it is appreciated.

As you well know I have been using the updates as they happened, this release seems very solid indeed. We just finished a QA cycle of our product that uses the WpfMediaKit and saw no problems at all.

-Eric

By Eric Meyer on   11/14/2008 11:13 AM

Re: WPF MediaKit bug fixes submitted to CodePlex

Thanks for paining through the cycles Eric! Now the MediaKit feels stronger than ever!

By Jeremiah Morrill on   11/14/2008 11:18 AM

Re: WPF MediaKit bug fixes submitted to CodePlex

Jeremiah,

I have tested this new version and so far everything runs fine. I haven't been able to reproduce the issues I mentioned in the previous releases.

In the application I am building, I am trying to set up different modes (different windows if you prefer): a light one with only a MediaUriElement, a more advanced one with several UserControls around the MediaUriElement, etc. I would like to give the user the possibility to switch from one to the other during a video playback, but I haven't been able to do so... I have tried two things:
- having a single MediaUriElement and move it from one window to the other, but this doesn't work as the MediaUriElement does not work in the new window any more
- creating a new MediaUriElement everytime I create a window (using the value of the properties of the previous one) but this doesn't work either as the video takes too long and the user experience a "gap" at the window change
I hope this makes sense...
I am really stuck here and if anyone could help, I'd really appreciate it!!

Damien

By Damien on   11/14/2008 2:44 PM

Re: WPF MediaKit bug fixes submitted to CodePlex

Damien,

Does setting the UnloadedBehavior to Play fix the problem?

By Jeremiah Morrill on   11/14/2008 4:25 PM

Re: WPF MediaKit bug fixes submitted to CodePlex

Jeremiah,

That's exactly what I needed! Thanks a lot!

Damien

By Damien on   11/15/2008 8:20 AM

Re: WPF MediaKit bug fixes submitted to CodePlex

Hi Jeremiah,

Thanks for this great MediaKit and the other open source projects!

I had problems playing a WMV file though, although I can play other media files. I tried Vista's Sample Videos (Butterfly, Bear, Lake) but no video is shown on SampleApplication's form. If I go into BaseClasses.cs and comment out the code that supplies the custom allocator to the renderer, then the video plays in an external window, but I would like it to play in the application's main window instead.

Also, changing the SpeedRatio by dragging the first slider doesn't seem to work. The video plays in real time no matter what value is set for SpeedRatio.

Please help me figure out these issues.

Thanks a lot!
Paul

By Paul Popa on   12/10/2008 12:49 PM

Re: WPF MediaKit bug fixes submitted to CodePlex

Hi Jeremiah,

Thanks for this great MediaKit and the other open source projects!

I had problems playing a WMV file though, although I can play other media files. I tried Vista's Sample Videos (Butterfly, Bear, Lake) but no video is shown on SampleApplication's form. If I go into BaseClasses.cs and comment out the code that supplies the custom allocator to the renderer, then the video plays in an external window, but I would like it to play in the application's main window instead.

Also, changing the SpeedRatio by dragging the first slider doesn't seem to work. The video plays in real time no matter what value is set for SpeedRatio.

Please help me figure out these issues.

Thanks a lot!
Paul

By Paul Popa on   12/10/2008 1:17 PM

Your name:
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
  Minimize
Text/HTML Minimize
Copyright 2007
Downloaded from DNNSkins.com