Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   General Talk And Support (http://forum.bsplayer.com/forumdisplay.php?f=8)
-   -   control bsplayer with c# app (http://forum.bsplayer.com/showthread.php?t=7034)

bartb 15th December 2005 01:17 AM

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

Tizio 15th December 2005 05:43 PM

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 :)

bartb 17th December 2005 09:14 PM

Ok, working on it.

I have the Stop and Play function working already.

//Bart

bartb 20th December 2005 02:01 AM

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

Mat2000 20th December 2005 05:11 AM

Please be aware that your need PRO version for that.

RafkeP 21st December 2005 08:27 AM

Quote:

Originally Posted by Mat2000
Please be aware that your need PRO version for that.

I know you are one of the designers, but are you sure about that?
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.

Tizio 21st December 2005 02:48 PM

Quote:

Originally Posted by RafkeP
Quote:

Originally Posted by Mat2000
Please be aware that your need PRO version for that.

I know you are one of the designers, but are you sure about that?
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... )

The exact same thing I thought about :?

bartb 21st December 2005 08:00 PM

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 12:52 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, 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