Results 1 to 9 of 9

Thread: Embedding FFPLAY.EXE How To ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    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
    5,906

    Re: Embedding FFPLAY.EXE How To ?

    What is the problem you encounter?

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    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
    5,906

    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
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    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
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    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
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    Re: Embedding FFPLAY.EXE How To ?

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

  8. #8
    New Member
    Join Date
    Jul 2019
    Posts
    1

    Re: Embedding FFPLAY.EXE How To ?

    Quote Originally Posted by darjeeling View Post
    I answer to myself.
    RESOLVED
    mWnd = WindowHandle("FFPlayer")
    Now it works
    Hi , how you solve the case using WindowHandle ?? can you share the necessary code ? and its Vb6 or VB.NET ??

    Thanks in advance

  9. #9

    Thread Starter
    Lively Member
    Join Date
    Sep 2016
    Posts
    94

    Re: Embedding FFPLAY.EXE How To ?

    Quote Originally Posted by vbcochin View Post
    Hi , how you solve the case using WindowHandle ?? can you share the necessary code ? and its Vb6 or VB.NET ??

    Thanks in advance
    Hi vbcochin,
    'Retrieve the window's handle of the specified window's title
    Public Function WindowHandle(sTitle As String) As Long
    WindowHandle = FindWindow(vbNullString, sTitle)
    End Function

    VB6

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