home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2003 February
/
PCWorld_2003-02_cd.bin
/
Software
/
Vyzkuste
/
Prehravacedivx
/
Prehravacedivx.exe
/
bsplay085.492.exe
/
sdk
/
bsp.pas
< prev
Wrap
Pascal/Delphi Source File
|
2002-11-10
|
6KB
|
238 lines
////////////////////////////////////////////////////////////////////
// BSPlayer API v 1.0
//
// To get BSPlayer window handle use:
// bsp_hand:=FindWindow('BSPlayer',nil);
//
// then you can send messages, for ex. to get current version:
// bsp_ver := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0);
////////////////////////////////////////////////////////////////////
unit bsp;
interface
uses messages;
const
WM_BSP_CMD = WM_USER+2;
// bsp_ver := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GETVERSION,0);
// available in BSPlayer version 0.84.484+
//
// Return player version
// format will be XX.YY.ZZZZ -> $XXYYZZZZ
// for 0.84.484 -> $00840484
BSP_GETVERSION = $10000;
// mov_len := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GetMovLen,0);
// available in BSPlayer version 0.84.484+
//
// Return moive length in msec
BSP_GetMovLen = $10100;
// mov_pos := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GetMovPos,0);
// available in BSPlayer version 0.84.484+
//
// Return current movie position in msec
BSP_GetMovPos = $10101;
// status := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GetStatus,0);
// available in BSPlayer version 0.84.484+
//
// Return player status
// 0 - STOP
// 1 - PAUSE
// 2 - PLAY
// 4 - No movie open
BSP_GetStatus = $10102;
// SendMessage(bsp_hand,WM_BSP_CMD,BSP_Seek,t);
// t is time in msec
// available in BSPlayer version 0.84.484+
//
// Seek to specified position
BSP_Seek = $10103;
// SendMessage(bsp_hand,WM_BSP_CMD,BSP_SetVol,vol);
// vol is volume in range 0-1000
// available in BSPlayer version 0.84.484+
//
// Set volume
BSP_SetVol = $10104;
// vol := SendMessage(bsp_hand,WM_BSP_CMD,BSP_GetVol,0);
// available in BSPlayer version 0.84.484+
//
//Get volume in range 0-1000
BSP_GetVol = $10105;
// cds:TCOPYDATASTRUCT;
//
// cds.dwData:=BSP_SetSkin;
// cds.lpData:=Pchar('skin_name');
// cds.cbData:=strlen(cds.lpData)+1;
// SendMessage(bsp_hand,WM_COPYDATA,0,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// Set new skin
BSP_SetSkin = $10106;
// cds:TCOPYDATASTRUCT;
// buf:array[0..MAX_PATH-1] of char;
// adr:pointer;
//
// adr:=@buf;
// cds.dwData:=BSP_GetSkin;
// cds.lpData:=@adr;
// cds.cbData:=4;
// SendMessage(bsp_hand,WM_COPYDATA,appHWND,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// appHWND is calling application window handle
//
// Get current skin, skin name will be copied to buf
BSP_GetSkin = $10107;
// cds:TCOPYDATASTRUCT;
//
// cds.dwData:=BSP_OpenFile;
// cds.lpData:=Pchar('file.avi');
// cds.cbData:=strlen(cds.lpData)+1;
// SendMessage(bsp_hand,WM_COPYDATA,0,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// Open file
BSP_OpenFile = $10108;
// cds:TCOPYDATASTRUCT;
//
// cds.dwData:=BSP_LoadSub;
// cds.lpData:=Pchar('subtitles.sub');
// cds.cbData:=strlen(cds.lpData)+1;
// SendMessage(bsp_hand,WM_COPYDATA,0,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// Load subtitles
BSP_LoadSub = $10109;
// cds:TCOPYDATASTRUCT;
//
// cds.dwData:=BSP_LoadAudio;
// cds.lpData:=Pchar('file.mp3');
// cds.cbData:=strlen(cds.lpData)+1;
// SendMessage(bsp_hand,WM_COPYDATA,0,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// Load external audio file
BSP_LoadAudio = $1010A;
// cds:TCOPYDATASTRUCT;
// buf:array[0..MAX_PATH-1] of char;
// adr:pointer;
//
// adr:=@buf;
// cds.dwData:=BSP_GetFileName;
// cds.lpData:=@adr;
// cds.cbData:=4;
// SendMessage(bsp_hand,WM_COPYDATA,appHWND,lParam(@cds));
// available in BSPlayer version 0.84.484+
//
// appHWND is calling application window handle
// File name will be copied to buf
//
// Get open file name
BSP_GetFileName = $1010B;
// Other commands
BSP_ExitFScreen=0;
BSP_VolUp=1;
BSP_VolDown=2;
BSP_DeDynUp=3;
BSP_DeDynPreUp=4;
BSP_DeDynDown=5;
BSP_DeDynPreDown=6;
BSP_Preferences=7;
BSP_FrmCapture=8;
BSP_Frm2=9;
BSP_FS_Switch=10;
BSP_SubsEnDi=11;
BSP_Skins=12;
BSP_AStrmVolCyc=13;
BSP_Rew=14;
BSP_Forw=15;
BSP_SubCorInc=16;
BSP_SubCorDec=17;
BSP_SubCorIncS=18;
BSP_SubCorDecS=19;
BSP_Play=20;
BSP_Pause=21;
BSP_Stop=22;
BSP_ViewChp=23;
BSP_VBlankSwitch=24;
BSP_Prev=25;
BSP_PrevCh=26;
BSP_PrevCD=27;
BSP_Next=28;
BSP_NextCh=29;
BSP_NextCD=30;
BSP_ATop=31;
BSP_OvrTop=32;
BSP_AspCyc=33;
BSP_PlayList=34;
BSP_Mute=35;
BSP_JumpToTime=36;
BSP_Zoom50=37;
BSP_Zoom100=38;
BSP_Zoom200=39;
BSP_AspOrg=40;
BSP_Asp169=41;
BSP_Asp43=42;
BSP_FSSW640=43;
BSP_FSSW800=44;
BSP_Vinf=45;
BSP_IncMovWin=46;
BSP_DecMovWin=47;
BSP_ZoomIn=48;
BSP_ZoomOut=49;
BSP_MoveLeft=50;
BSP_MoveRight=51;
BSP_MoveUp=52;
BSP_MoveDown=53;
BSP_FRSizeLeft=54;
BSP_FRSizeRight=55;
BSP_FRSizeUp=56;
BSP_FRSizeDown=57;
BSP_ResetMov=58;
BSP_HideCtrl=59;
BSP_EQ=60;
BSP_OpenAud=61;
BSP_OpenSub=62;
BSP_OpenMov=63;
BSP_PanScan=64;
BSP_CusPanScan=65;
BSP_DeskMode=66;
BSP_AddBk=67;
BSP_EditBK=68;
BSP_SkinRefr=69;
BSP_About=70;
BSP_CycleAS=71;
BSP_CycleSub=72;
BSP_PanSzIn=73;
BSP_PanSzOut=74;
BSP_Exit=75;
// 0.84.492+
BSP_CloseM=78;
BSP_JumpForw=79;
BSP_JumpBack=80;
BSP_GoChapter=81;
BSP_CycleVid=82;
implementation
end.