Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Play simple Avi file in WIN32 API C++

Play simple Avi file in WIN32 API C++

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++graphicsgame-devjson
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    Ward 0
    wrote on last edited by
    #1

    Hi, What API can I use to play a simple avi-file on the window (HWND)? Please not using DirectX (DirectShow). thanks in advance, Ward Ward

    S H 2 Replies Last reply
    0
    • W Ward 0

      Hi, What API can I use to play a simple avi-file on the window (HWND)? Please not using DirectX (DirectShow). thanks in advance, Ward Ward

      S Offline
      S Offline
      Sarath C
      wrote on last edited by
      #2

      See this...[^] SaRath.
      "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

      W 1 Reply Last reply
      0
      • S Sarath C

        See this...[^] SaRath.
        "It is your attitude, not your aptitude, that determines your altitude - Zig Ziglar." My Blog | Understanding State Pattern in C++

        W Offline
        W Offline
        Ward 0
        wrote on last edited by
        #3

        Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window. I've explored the MCI api (a little higher in the treeview of the link you gave me), but this is also not exactly what I need. MCIWnd gives me a complete window (including a bucn of controls), but that I don't need that. Ward

        D 1 Reply Last reply
        0
        • W Ward 0

          Hi, What API can I use to play a simple avi-file on the window (HWND)? Please not using DirectX (DirectShow). thanks in advance, Ward Ward

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          What do you need?i think MCI functions are good_**


          **_

          whitesky


          W 1 Reply Last reply
          0
          • H Hamid Taebi

            What do you need?i think MCI functions are good_**


            **_

            whitesky


            W Offline
            W Offline
            Ward 0
            wrote on last edited by
            #5

            OK, can you show example code where you can load and show an avi on a HWND, not containing any controls? Ward

            H 1 Reply Last reply
            0
            • W Ward 0

              OK, can you show example code where you can load and show an avi on a HWND, not containing any controls? Ward

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #6

              Well in fact i want to show like this code but its a big for this fourm so i said you can use MCI_**


              **_

              whitesky


              1 Reply Last reply
              0
              • W Ward 0

                Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window. I've explored the MCI api (a little higher in the treeview of the link you gave me), but this is also not exactly what I need. MCIWnd gives me a complete window (including a bucn of controls), but that I don't need that. Ward

                D Offline
                D Offline
                David Crow
                wrote on last edited by
                #7

                Ward wrote:

                Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window.

                Opening an AVI file


                "The largest fire starts but with the smallest spark." - David Crow

                "Judge not by the eye but by the heart." - Native American Proverb

                W 1 Reply Last reply
                0
                • D David Crow

                  Ward wrote:

                  Yes, those functions I already found, but there is no example (or at least I can't see one) that shows the use of these functions to open an avi-file and display it on a window.

                  Opening an AVI file


                  "The largest fire starts but with the smallest spark." - David Crow

                  "Judge not by the eye but by the heart." - Native American Proverb

                  W Offline
                  W Offline
                  Ward 0
                  wrote on last edited by
                  #8

                  Final solution. I'm sorry to say that all you were able to reply on this topic was simply a result of some high level searching the internet. None of them showed me a nice clean piece of code that actually did it. Finally I found it on my own using a common control of ICC_ANIMATE_CLASS. This window class is able to to it by using simple functions like Animate_Open and Animate_Play. For those who are really interested, I can post a nice clean example of it. Just ask for it and I'll post here here. kind regards, Ward -- modified at 8:55 Friday 30th June, 2006

                  D 1 Reply Last reply
                  0
                  • W Ward 0

                    Final solution. I'm sorry to say that all you were able to reply on this topic was simply a result of some high level searching the internet. None of them showed me a nice clean piece of code that actually did it. Finally I found it on my own using a common control of ICC_ANIMATE_CLASS. This window class is able to to it by using simple functions like Animate_Open and Animate_Play. For those who are really interested, I can post a nice clean example of it. Just ask for it and I'll post here here. kind regards, Ward -- modified at 8:55 Friday 30th June, 2006

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    Ward wrote:

                    None of them showed me a nice clean piece of code that actually did it.

                    Surely you can't be that lame. Sarath provided you a link to the AVI functions, and you replied to him that you already knew of them but that none of them had an example that showed how to open an AVI file. I provided you with a very succinct example of how to open an AVI file (from the link that Sarath provided).


                    "The largest fire starts but with the smallest spark." - David Crow

                    "Judge not by the eye but by the heart." - Native American Proverb

                    W 1 Reply Last reply
                    0
                    • D David Crow

                      Ward wrote:

                      None of them showed me a nice clean piece of code that actually did it.

                      Surely you can't be that lame. Sarath provided you a link to the AVI functions, and you replied to him that you already knew of them but that none of them had an example that showed how to open an AVI file. I provided you with a very succinct example of how to open an AVI file (from the link that Sarath provided).


                      "The largest fire starts but with the smallest spark." - David Crow

                      "Judge not by the eye but by the heart." - Native American Proverb

                      W Offline
                      W Offline
                      Ward 0
                      wrote on last edited by
                      #10

                      The AVI functions that you brought up where all created with the purpose of editing the AVI file. The application I was looking for was to play an AVI file. I've searched before in all the information that Sarath gave my a link to and I've also looked at the example that you've (DavidCrow) linked me too. But the functions and the example did not provided a simple solution. The purpose for me was to have a simple solution to play an avi, not the implement a complete engine using the AVI-functions. I'm sure that I would be able to accomplish that, but it had to be implemented in a very short period of time. I understand your remarks, and I hope you understand mine as well. kind regards, Ward

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups