-
Dec 6th, 2018, 05:18 AM
#1
Thread Starter
Lively Member
Embedding FFPLAY.EXE How To ?
how to play a video with ffplay inside a VB6 window.
I've tried SetParent API without success.
-
Dec 6th, 2018, 05:47 AM
#2
Re: Embedding FFPLAY.EXE How To ?
What is the problem you encounter?
-
Dec 6th, 2018, 06:06 AM
#3
Thread Starter
Lively Member
Re: Embedding FFPLAY.EXE How To ?
I would like to play video files with FFPLAY inside a VB6 window.
-
Dec 6th, 2018, 08:36 AM
#4
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
-
Dec 6th, 2018, 09:11 AM
#5
Thread Starter
Lively Member
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....
-
Dec 6th, 2018, 09:25 AM
#6
Thread Starter
Lively Member
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 ?
-
Dec 6th, 2018, 09:37 AM
#7
Thread Starter
Lively Member
Re: Embedding FFPLAY.EXE How To ?
I answer to myself.
RESOLVED
mWnd = WindowHandle("FFPlayer")
Now it works
-
Jul 30th, 2019, 12:11 AM
#8
New Member
Re: Embedding FFPLAY.EXE How To ?
Originally Posted by darjeeling
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
-
Jul 30th, 2019, 10:59 AM
#9
Thread Starter
Lively Member
Re: Embedding FFPLAY.EXE How To ?
Originally Posted by vbcochin
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|