Results 1 to 6 of 6

Thread: Playing AVI - Accessing MCI Display Window

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    4

    Playing AVI - Accessing MCI Display Window

    Hi folks,

    i got a problem with playing AVI media files or better, i´m in trouble accessing the display window where the media file is shown in.
    A brief description of how it works, i simply add various MCI´s to a form, each will play a different AVI (i know that´s not a good design in general), you click on the play button of the MC interface and the AVI is played in a new window.

    I want a reference to that window for resizing issues and i don´t know how to get it....

    I´d really appreciate any suggestions you might have.

    NeoWest
    "Mankind excels above all other species on the planet and it especially excels at destruction" KevlarWest, The Pessimist´s Workbook

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    For the record Neo, what do you mean by MCI's please?

    There is a control Ms wrote called the Animation Control which might make things easier for you. If you select the "Microsoft Windows Common Controls-2 x.0" Library from your vb projects>references menu you should be able to work with it...

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    4
    Hi,

    it´s called Multimedia Control Interface - if you add it standard variable Name is MMControl(1-n).

    I can tell you more tomorrow, because it´s not my program to be honest and i have to talk to the developer (he isn´t great at english) again.

    Thx for the answer so far...

    Neo
    "Mankind excels above all other species on the planet and it especially excels at destruction" KevlarWest, The Pessimist´s Workbook

  4. #4

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    4
    Okay i got more details now.

    The control element used is a Microsoft Multimedia Control (MMC) 6.0.
    As said above it is used to start the playback of various .avi files and you can use the hwndDisplay property to get the index value of the window where the .avi playback is shown, but how do i access the window´s properties. Isn´t there a methode that will return the window object itself or a reference to it, so i could access it´s properties and methods?

    ....any ideas? Anyone?
    "Mankind excels above all other species on the planet and it especially excels at destruction" KevlarWest, The Pessimist´s Workbook

  5. #5

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Posts
    4
    Hi,

    i (better me friend) tried the Animation control displaying the avi in a PictureBox.... it´s stuck to it´s size unless i access the properties... i need more of a auto-size behaviour. (Auto-size property does NOT work)

    Well i´m more a java coder, i just try to translate this for my pal:

    What we wanna do is:
    -Play various avi files,
    -the display area should be adjustable
    -read the avi´s properties like height and width or standard resolution
    -if an extra window is used for display - we need access to it´s properties for resizing issues

    I don´t like pure code answers - it would be really great, if you have a roadmap how to solve the criteria above.

    Neo
    "Mankind excels above all other species on the planet and it especially excels at destruction" KevlarWest, The Pessimist´s Workbook

  6. #6
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Can you upload the code you have at the moment please?

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width