20 Jun '13 - 08:50 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Reply  |  Print  
Author Topic: How to use BassVideo_WM_Mouse_Click  (Read 1175 times)
iFynk
Guest
« on: 17 Jun '09 - 10:26 »
Reply with quoteQuote

Hi all from Ukraine.

This is my function of VIDEOPROC CALLBACK

function myVideoProc(Handle : DWORD; Action, param1, param2 : DWORD; user : Pointer): BOOL; stdcall;
var clientRect : TRect;
begin
 result := true;

 case Action of
    BassVideo_FoundVideo:
    begin
      ClientRect.Left := 0;
      ClientRect.Top := 46;
      ClientRect.Right := 800;
      ClientRect.Bottom := 333;
      BassVideo_SetVideoWindow(0, videoHandle, ClientRect, 0);
    end;

    BassVideo_PlayEvent:
    begin
      videoMode := param1;
    end;

    BassVideo_WM_Mouse_Click:
    begin
      ClientRect.Left := 0;
      ClientRect.Top := 0;
      ClientRect.Right := 800;
      ClientRect.Bottom := 480;
      BassVideo_SetVideoWindow(0, videoHandle, ClientRect, 0);
    end;
 end;

end;

but Click event don't work whis this code. Whats wrong?
videoHandle is a Handle of main form.

PS: Sorry for my poor English.
Logged
kenshin1101
Posts: 543


« Reply #1 on: 17 Jun '09 - 15:00 »
Reply with quoteQuote

This event appear when "BASSVIDEO_AUTO_MOVE" flags set and the video window received WM_LBUTTONUP message, set the result to TRUE to process it, false to let BassVideo process.

are you sure you have BASSVIDEO_AUTO_MOVE in your BassVideo_StreamCreateFile ?
Logged
iFynk
Guest
« Reply #2 on: 17 Jun '09 - 15:04 »
Reply with quoteQuote

but with  'BASSVIDEO_AUTO_MOVE' in BassVideo_StreamCreateFile  my video don't play.
Logged
kenshin1101
Posts: 543


« Reply #3 on: 18 Jun '09 - 01:21 »
Reply with quoteQuote

but with  'BASSVIDEO_AUTO_MOVE' in BassVideo_StreamCreateFile  my video don't play.

try override your wndproc and catch WM_LBUTTONUP message
Logged
iFynk
Guest
« Reply #4 on: 18 Jun '09 - 07:09 »
Reply with quoteQuote

How i can do this? Some example please.
Logged
kenshin1101
Posts: 543


« Reply #5 on: 18 Jun '09 - 07:56 »
Reply with quoteQuote

How i can do this? Some example please.

if you code in delphi you can see the demo in Delphi folder of BassVideo package
Logged
iFynk
Guest
« Reply #6 on: 18 Jun '09 - 08:20 »
Reply with quoteQuote

But in this Delphi folder are other folders.
 - Capture
 - Convert WMV
 - PlayFile
 - VMR9 Effect

which one?
Logged
kenshin1101
Posts: 543


« Reply #7 on: 18 Jun '09 - 09:19 »
Reply with quoteQuote

But in this Delphi folder are other folders.
 - Capture
 - Convert WMV
 - PlayFile
 - VMR9 Effect

which one?

DemoFull
http://www.un4seen.com/filez/6/BassVideo_2.4.1.2.zip
Logged
iFynk
Guest
« Reply #8 on: 18 Jun '09 - 11:13 »
Reply with quoteQuote

Thanks. I will see it.
Logged
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines