dcsimg
Results 1 to 7 of 7

Thread: Embedding FFPLAY.EXE How To ?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2016
    Posts
    20

    Question Embedding FFPLAY.EXE How To ?

    how to play a video with ffplay inside a VB6 window.

    I've tried SetParent API without success.

  2. #2
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    3,246

    Re: Embedding FFPLAY.EXE How To ?

    What is the problem you encounter?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Sep 2016
    Posts
    20

    Re: Embedding FFPLAY.EXE How To ?

    I would like to play video files with FFPLAY inside a VB6 window.

  4. #4
    PowerPoster Arnoutdv's Avatar
    Join Date
    Oct 2013
    Posts
    3,246

    Re: Embedding FFPLAY.EXE How To ?

    What is the problem you have? Do you get an error?

    According to some threads on StackOverflow SetParent in combination with MoveWindow should work:
    https://stackoverflow.com/questions/...rp-application

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Sep 2016
    Posts
    20

    Re: Embedding FFPLAY.EXE How To ?

    OK Arnoutdv,
    I see this thread on StackOverflow but it don't solve my problem.
    I can launch FFPLAY but i can't disable the console window and i can't resize then player window.
    In fact, FFPLAY seems to not respond to SetParent....

  6. #6

    Thread Starter
    Junior Member
    Join Date
    Sep 2016
    Posts
    20

    Re: Embedding FFPLAY.EXE How To ?

    I answer to myself.
    When FFPLAY run, it creates 2 windows:
    First is console
    Second is the Player witch have a title (for example: 'FFPlayer')
    How to retrieve the handle of this one ?

  7. #7

    Thread Starter
    Junior Member
    Join Date
    Sep 2016
    Posts
    20

    Re: Embedding FFPLAY.EXE How To ?

    I answer to myself.
    RESOLVED
    mWnd = WindowHandle("FFPlayer")
    Now it works

Posting Permissions

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



Featured


Click Here to Expand Forum to Full Width