Chris Cavanagh’s Blog

Interactive YouCube Source Code

September 17, 2008 · 1 Comment

You can get the source code for YouCube 2.0 here.  It’s lightly commented, mainly to draw attention to the dirty hacks :)

See my earlier post for a brief description of what’s going on and note the following:

  • The main class of interest is CjcWebBrowser.  It starts a worker thread to take snapshots of the browser control and updates the WriteableBitmap through Dispatcher.Invoke.
  • There’s some obsolete code in there (mainly in the NativeMethods folder).  It could use some refactoring :)
  • It’s tempting to revert to using the Windows Forms WebBrowser control (instead of the WPF/3.5 one).  It already has a ‘DownloadProgress’ event and seemed to perform a bit better (but I could be wrong on that).  Let me know if you get chance to try it…

Categories: .NET · COM Interop · WPF

1 response so far ↓

  • tung // August 20, 2009 at 10:16 pm | Reply

    hi, the app is very good
    but win1 = YouCube;

    mywin = win2

    in win2 i new win1 and show up but focus is no active, i can’t click in web

Leave a Comment