|
General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players. |
| LinkBack | Thread Tools | Search this Thread | Display Modes |
| |||
control bsplayer with c# app Has anybody already made an application in c# to control bsplayer? I am thinking of a simple parameter based program that can load a fileplaylist, reload, restart, stop, play etc.. the purpose is a public computer that displays advertisement videos, the content must be changed while playing.. //bart |
| |||
I have programmed nothing in C#, but in VB yes and it's really simple. Check the SDK folder and you will find all the instructions you need. BTW all the things you want your program to be able to do are all possible :)
__________________ BSP SkinMaker (v1.07) the one and only Skin Editor for BSplayer BSP Definitions Manager (v1.02) BS.Player's FAQ (by BSPeter) | Italian language file (v2.57 build 1051) |
| |||
problems with WM_COPYDATA
Hi, Altough i managed to send the integers to do Play(), Stop(), Pause(), setVol(this.obj.Value) I cannot get the OpenFile working. I tried to make this struct, with an pointer to the string "testfile.avi" but i can't get it to work. Any ideas? Bart // COPYDATASTRUCT cds; // // cds.dwData=BSP_OpenFile; // cds.lpData=(void *) "file.avi"; // cds.cbData=strlen((char *)cds.lpData)+1; // SendMessage(bsp_hand,WM_COPYDATA,0,(LPARAM)&cds); // available in BSPlayer version 0.84.484+ // // Open file #define BSP_OpenFile 0x10108 |
| |||
Quote:
Personally I have no problems with calling the openfile function from my external application. I tested it with the free version 137.826. I don't see the use of blocking this feature in the free release of BSplayer: an external application could just as well open a file by using the command line parameters. (not so clean as with the sendmessage, but still... ) If you don't mind I would like to ask bartb to post his code to open his file over here so we can have a closer look at it. @bartb -> make sure you include the complete path to your file. Rafke P. |
| |||
Quote:
__________________ BSP SkinMaker (v1.07) the one and only Skin Editor for BSplayer BSP Definitions Manager (v1.02) BS.Player's FAQ (by BSPeter) | Italian language file (v2.57 build 1051) |
| |||
Hi RafkeP, See the attachment of the code. It's made with Visual Studio 2003 and its an solution with two projects. One is the controller, the other is the helper library (dll) The command line is something i thought about yersterday and it works, although i prefer sending these commands with the struct / pointer. Bart |
Tags |
app, control |
| |