Official BS.Player forums  

Go Back   Official BS.Player forums > Main forum > General Talk And Support
Register FAQ Calendar Today's Posts Search

General Talk And Support General talk and peer-to-peer support about BS.Player and other video and audio multimedia players.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 15th December 2005
Junior Member
BS.Player Newbie
 
Join Date: Dec 2005
Posts: 4
Rep Power: 0
bartb is an unknown quantity at this point
Default 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
Reply With Quote
  #2 (permalink)  
Old 15th December 2005
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

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)
Reply With Quote
  #3 (permalink)  
Old 17th December 2005
Junior Member
BS.Player Newbie
 
Join Date: Dec 2005
Posts: 4
Rep Power: 0
bartb is an unknown quantity at this point
Default

Ok, working on it.

I have the Stop and Play function working already.

//Bart
Reply With Quote
  #4 (permalink)  
Old 20th December 2005
Junior Member
BS.Player Newbie
 
Join Date: Dec 2005
Posts: 4
Rep Power: 0
bartb is an unknown quantity at this point
Default 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
Reply With Quote
  #5 (permalink)  
Old 20th December 2005
Mat2000's Avatar
Administrator
BS.Player Power User
 
Join Date: Nov 2003
Location: SLOVENIA
Age: 48
Posts: 126
Rep Power: 22
Mat2000 will become famous soon enough
Default

Please be aware that your need PRO version for that.
__________________
-
Reply With Quote
  #6 (permalink)  
Old 21st December 2005
Senior Member
BS.Player Power User
 
Join Date: Feb 2004
Posts: 126
Rep Power: 0
RafkeP is an unknown quantity at this point
Default

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.
Reply With Quote
  #7 (permalink)  
Old 21st December 2005
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

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 :?
__________________
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)
Reply With Quote
  #8 (permalink)  
Old 21st December 2005
Junior Member
BS.Player Newbie
 
Join Date: Dec 2005
Posts: 4
Rep Power: 0
bartb is an unknown quantity at this point
Default

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
Attached Files
File Type: zip bsplayer_200.zip (56.6 KB, 386 views)
Reply With Quote
Reply

Tags
app, control


Posting Rules


All times are GMT +1. The time now is 06:42 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