![]() |
control bsplayer with c# app Hi, 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. :wink: BTW all the things you want your program to be able to do are all possible :) |
Ok, working on it. I have the Stop and Play function working already. //Bart |
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 |
Please be aware that your need PRO version for that. |
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:
|
1 Attachment(s) 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 |
All times are GMT +1. The time now is 07:21 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger