Feb 27th

Using flash in Miranda

2006, 05:40 UTC | By | In Miranda
Leave a comment | Trackback  | 878 views

Note: This is not a really useful plugin. It is more like a small coding experiment which I created for testing various impacts of writing a MFC plugin for Miranda which can use ActiveX objects.

Embedding flash movies in normal C or C++ applications is quite straightforward as long as you know how to use COM objects in your code. The flash player is such a control and can be embedded in any application which has been made ready to use COM objects.

In theory, it could be done in plain C/Win32, but it is much easier to do it with MFC or ATL. The additional C++/MFC overhead doesn't mean much as we are talking about embedding a rather big COM object anyway, so embedding the flash player will certainly increase the memory footprint of Miranda significantly. But, you know, everything has its price tag..

The example code doesn't do much. It creates a new frame on the contact list and will play a flash movie inside this frame. To run this plugin, you need a multiwindow-enabled contact list, like clist_mw, clist_modern or clist_nicer+ (that means, this plugin will *not* work on clist_classic).

Some limitations of this example code:

Don't use *HUGE* flash movies, because they will most likely slow down your miranda too much. I tested it with some smaller animations and it didn't affect performance too much. It may, however, cause a delay when loading miranda, because the plugin has to load the flash player control. This delay is worst when Windows has to load the flash object for the first time - it could really slow down Mirandas startup process by a couple of seconds, depending on the speed of your machine.

To solve this problem, multithreading will be useful, but this will make things more complex and since this is only an example and not a really useful plugin, I don't care about these limitations *at the moment*. I will think about a better solution for embedding a flash control when I can find a useful reason to do so (one might be the possibility to play flash avatars in the message window).

1 Like Like
 

3 responses to: Using flash in Miranda

  1. elishnevsky, Feb 27th, 2006 at 08:22
    Reply | Quote | #1

    Hi Alex. Sorry for the off-topic, but that is a very nice clist theme you have. Can you share it? :)

  2. Nightwish, Feb 27th, 2006 at 08:26
    Reply | Quote | #2

    Actually, it's not *so* special.

    I'am using a Vista-style Windowblinds theme (which does all the nice buttons).

    The rest is clist design using the new (and still "unofficial") skinning engine of clist_nicer+ which allows skinning with .PNG images (not at the same level as _modern, because clist nicer is not a layered app, but it offers decent design possibilities).

    That engine is not fully stable right now, and I'am still working on the skinning format. The format will be published when it becomes more mature - should happen within the next 1-2 nightlys.

  3. elishnevsky, Feb 27th, 2006 at 17:53
    Reply | Quote | #3

    Sounds good. I'll be looking forward to this new engine. Thanks for the reply.

Subject

  (this is optional)

Comment text

Allowed HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>