Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > Bug Reports And Codecs

Bug Reports And Codecs Report BS.Player bugs here - help us to improve BS.Player even further.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11th November 2003
Junior Member
BS.Player Newbie
 
Join Date: Sep 2003
Posts: 8
Rep Power: 0
giubbe is an unknown quantity at this point
Default SDK 1.1 (1.0.800) Bugs

The result of BSP_GETVERSION is always- 1

The command BSP_Exit doesn't work

I have not checked the others.

Bye, Giubbe
Reply With Quote
  #2 (permalink)  
Old 12th November 2003
bst's Avatar
bst bst is offline
BS.Developer
BS.Player Power User
 
Join Date: Jun 2002
Posts: 181
Rep Power: 10
bst will become famous soon enoughbst will become famous soon enough
Default

Hmm this should work.
Could you post some example code ?
Reply With Quote
  #3 (permalink)  
Old 13th November 2003
Junior Member
BS.Player Newbie
 
Join Date: Sep 2003
Posts: 8
Rep Power: 0
giubbe is an unknown quantity at this point
Default

I apologize, I mistake

The BSP_GETVERSION works, I had send the wrong command

The BSP_Exit works only if the filmed is on play

The following code works well in 0.86.501, but not in 1.0.800 (not exit)

repeat
hWnd2 := FindWindow('BSPlayer',nil);
Application.ProcessMessages;
if Time - Te > 1/24/60 then begin
TempoOK:=false;
hWnd2:=1;
end;
until hWnd2<>0;
if tempoOK then begin
Ver := SendMessage(hWnd2, WM_BSP_CMD, BSP_GETVERSION, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Play, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Exit, 0);
end

This you instead work well in both the versions

repeat
hWnd2 := FindWindow('BSPlayer',nil);
Application.ProcessMessages;
if Time - Te > 1/24/60 then begin
TempoOK:=false;
hWnd2:=1;
end;
until hWnd2<>0;
if tempoOK then begin
Ver := SendMessage(hWnd2, WM_BSP_CMD, BSP_GETVERSION, 0);
showMessage(IntToStr(ver));
SendMessage(hWnd2, WM_BSP_CMD, BSP_Play, 0);
SendMessage(hWnd2, WM_BSP_CMD, BSP_Exit, 0);
end


This code starts the Chapter Cap with 0.86.501 and the chapter Cap-1 in 1.0.800

for t:=1 to Cap do SendMessage(bsp_hand,WM_BSP_CMD,BSP_NextCh,0);
Reply With Quote
Reply

Tags
sdk

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules


All times are GMT +1. The time now is 02:31 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20