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 17th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default BSPlayer Subtitle Plugin...

Shortly: Some times ago I begin with creating plugin for my favourite video player... For some reasons, I stopped this project, until few days ago when I again continue working on that... and I will try soon to finish the same!

But now, I have one question, if somebody can help me:
Is there a way to embed some simple GUI application to BSP plugin's dll?
This simple GUI will be started by pressing some keyboard key (shortcut) and have had very simple functionality!
If this is possible, is there someone that can explain me HOW to do that???
Btw, I'm using Visual Studio 2008 (GUI was created in Visual C++ Builder)...

Sorry for my bad English, I hope that you understand what I want to say (ask)...

Regards,
Stole
Reply With Quote
  #2 (permalink)  
Old 17th September 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

Hi!
Since v1.0.811 (SDK updated only since v2.11.940), EV_KEY_PRESS event has been added to the SDK, so you can add a statement that checks for this event and calls a routine where you can parse the key pressed.
At this time you can show up the GUI, or you can add the visualization of the GUI at the Config or About button pression in BSplayer Plugins preferences page (respectively EV_CONFIG and EV_ABOUT events)

Take a look at C:\Program Files\Webteh\BSplayer\sdk\plugins\bspplg.h file ;)
And for an example on KeyPress and Config calls take a look at C:\Program Files\Webteh\BSplayer\sdk\plugins\C\Sample\samplep lugin.c
__________________
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 18th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Thanks Tizio, but I think that You don't understand me, i.e. I don't well formulate my question!

The main QUESTION is:
Is there a way to EMBED some simple GUI application to BSP PLUGIN's DLL??? when I say "GUI" I thinked on some extern windowed application (for example created with Visual C++ Builder 2008, also I have source code for the same), and I want to run this app from BS.Player with some parameters!???
Simple example how it should work:
From BSP I run this application and in applications window I should have seen subtitle lines in the same moment like that's in BSP showed, with the difference that I can edit this one in my app and save on the disk!

Starting on the key press was just a suggestion how to run this program (my app), and I know how key press (EV_KEY_PRESS event) works normally... Also, I ponder both files that You suggested (bspplg.h & sampleplugin.c), and understanded all the logic of creating simple BSP plugins...

Thanks one more time, Tizio, for interested for my work, to help me!!!
Reply With Quote
  #4 (permalink)  
Old 19th September 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

Unfortunately I never used GUIs in C++ programs (I always created dos like programs in C++), the only GUIs I used were with VisualBasic, but I'm sure it's something you can do (to add a GUI to your DLL file). If you know how to create a GUI in standard C++ programs, you'll be able to create it with a DLL.

To create the GUI you can use C++ Builder, but in your app (not a DLL, but a simple app) you have to make a call to a routine that actually shows the GUI, right?
This, in a normal application, will probably happen in the main routine, and in BSP plaug in will happen in the EV_KEY_PRESSED case statement..

Sorry if I can't help you any further with this topic, I planned to learn Visual C, but due to lack of time I left the project.. :(
__________________
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
  #5 (permalink)  
Old 19th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Quote:
Originally Posted by Tizio
To create the GUI you can use C++ Builder, but in your app (not a DLL, but a simple app) you have to make a call to a routine that actually shows the GUI, right?
This, in a normal application, will probably happen in the main routine, and in BSP plaug in will happen in the EV_KEY_PRESSED case statement..
YES, exactly that is what I want to do, and I don't know clearly how to implement this routines that shows the GUI in the EV_KEY_PRESSED...
But I'm not going to surrender yet with this! ;)

Quote:
Originally Posted by Tizio
Sorry if I can't help you any further with this topic, I planned to learn Visual C, but due to lack of time I left the project.. :(
Thanks very much Tizio, You already helped me, and I apreciate that...

Regards,

Stole
Reply With Quote
  #6 (permalink)  
Old 19th September 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

Well, if you already know how to visualize the GUI from main routine, just add that code to an external routine (maybe call it ShowGUI) then when the KeyPress event occurs, parse the key pressed, and if it's your shortcut combination make a call to the ShowGUI function...
But if you don't know how to make a GUI to show up I can't help you :P

If you manage to make it work post here your results, I'm sure many BSplayer users will be grateful ;)
__________________
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
  #7 (permalink)  
Old 19th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Quote:
Originally Posted by Tizio
Well, if you already know how to visualize the GUI from main routine, just add that code to an external routine (maybe call it ShowGUI) then when the KeyPress event occurs, parse the key pressed, and if it's your shortcut combination make a call to the ShowGUI function...
But if you don't know how to make a GUI to show up I can't help you :P
Until now, I have no need to visualize GUI from main routine (I do that in Python & Java, but not in C++), so I don't know how to do that exactly, but I will try to find something about this on the internet, Google will help... ;)

Quote:
Originally Posted by Tizio
If you manage to make it work post here your results, I'm sure many BSplayer users will be grateful ;)
Of course, my friend, if I succeed, I think that it will be very useful plugin, and it will be available to ALL BSP users...

Regards
Reply With Quote
  #8 (permalink)  
Old 20th September 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

Good luck ;)
__________________
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
  #9 (permalink)  
Old 21st September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Thanks! :D
Reply With Quote
  #10 (permalink)  
Old 21st September 2008
Moderator
BS.Player Master
 
Join Date: Jan 2003
Location: Romania
Age: 57
Posts: 5,235
Rep Power: 32
adicoto is on a distinguished road
Default

We keep the fingers crossed for you. Good luck.
Reply With Quote
  #11 (permalink)  
Old 23rd September 2008
BSPeter's Avatar
Moderator
BS.Player Master
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 5,463
Rep Power: 33
BSPeter is on a distinguished road
Default

Just curious for what kind(s) of subs this plug-in is being developped.
:?:
__________________
Help2Help (click) BSplayer: simply the best & most versatile (Build 1072 Dutch language here!)
When posting always mention your computer's OS and the version and build number(!) of BS.Player as used by you,
as well as - if applicable and especially when encountering problems - the type(s) of the file(s) mentioned in your post.
Private messages/Visitor messages are NOT for seeking personal help with respect to BS.Player! Instead use the forums!
Reply With Quote
  #12 (permalink)  
Old 24th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Quote:
Originally Posted by adicoto
We keep the fingers crossed for you. Good luck.
Thanks! ;)

Quote:
Originally Posted by BSPeter
Just curious for what kind(s) of subs this plug-in is being developped.
First (initial) version works only with .srt (SubRip) and .sub (MicroDVD)... After, if plug-in will be accepted from wide circle of BSP users, I will add functionality for much more sub kinds...

Regards
Reply With Quote
  #13 (permalink)  
Old 24th September 2008
Moderator
BS.Player Master
 
Join Date: Jan 2003
Location: Romania
Age: 57
Posts: 5,235
Rep Power: 32
adicoto is on a distinguished road
Default

The purpose of BSPeter's question was that currently BSPlayer supports natively srt, sub, basic suport for ass/ssa and also can manage vobsub and embedded subtitles in avi and mkv. It can also dispaly rared subtiles from idx/sub in /sub subfolder of an avi file.
So, if the plugin it's not dedicated to other subtitle types (or, for example for ass/ssa full support and for divx proprietary format), it's somehow useless.
Reply With Quote
  #14 (permalink)  
Old 24th September 2008
BSPeter's Avatar
Moderator
BS.Player Master
 
Join Date: Nov 2002
Location: The Netherlands
Posts: 5,463
Rep Power: 33
BSPeter is on a distinguished road
Default

I must say that's a bit of a disappointment.
Check out BS.Player's existing features (click here)
(it even supports two different subtitles at the same time)
:(
But maybe you were e.g. thinking of subs to be displayed in a separate (detached) window?
__________________
Help2Help (click) BSplayer: simply the best & most versatile (Build 1072 Dutch language here!)
When posting always mention your computer's OS and the version and build number(!) of BS.Player as used by you,
as well as - if applicable and especially when encountering problems - the type(s) of the file(s) mentioned in your post.
Private messages/Visitor messages are NOT for seeking personal help with respect to BS.Player! Instead use the forums!
Reply With Quote
  #15 (permalink)  
Old 24th September 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

I think he wants to create a subtitles editor for BSplayer :roll:
Quote:
Originally Posted by Condor
Simple example how it should work:
From BSP I run this application and in applications window I should have seen subtitle lines in the same moment like that's in BSP showed, with the difference that I can edit this one in my app and save on the disk!
__________________
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
  #16 (permalink)  
Old 25th September 2008
Moderator
BS.Player Master
 
Join Date: Jan 2003
Location: Romania
Age: 57
Posts: 5,235
Rep Power: 32
adicoto is on a distinguished road
Default

Yeap, I think Tizio is right. Somehow missed that explanation.
So, another subtitle editor for BSPlayer ? :)
Reply With Quote
  #17 (permalink)  
Old 25th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Quote:
Originally Posted by Tizio
I think he wants to create a subtitles editor for BSplayer :roll:
Yes, that's right... Thanks Tizio! ;)

Quote:
Originally Posted by adicoto
So, another subtitle editor for BSPlayer ? Smile
Yes, but this one will be embeded into BSP, i.e. there is no need to run any external applications (like SubRip, SubtitleWorkshop, TimeAdjuster) to do some basic operation on the subtitle (like time corrections, i.e. synchronization and subtitle editing, etc.)... Everything should be done FROM BSP, with huge simplicity! Simple GUI, which was reason for opening this thread, is only one small part of the whole plug-in and his funcionality!
And I know, BSP have sub time corrections (only basic, linear), but also, that changes will not be saved on HD!

And the above story, relevant to sub formats, add up to very simple explanation: I represent sub in my plug-in with my "internal format" which means that is very simple to add funcionality for new formats (of course, only thats which are supported by BSP, for other no sense...)! But this is not so matter, because this is not primary plug-in purpose... .sub and .srt are absolutely enough for me, but if somebody think that will be good to maintenance some other format - OK...

Also, I'm study and work simultaneous, so this project will not go very fast, i.e. it will not be finished at once, but I will doing it part-by-part and adding more and more funcionality...


And very IMPORTANT:
I work this for my OWN needs and purpose, BUT, like I said earlier, it will be available to ALL BSP users, and of course, I will always consider all suggestions and advices, and be thankful for that...

Regards,
Stole
Reply With Quote
  #18 (permalink)  
Old 25th September 2008
Moderator
BS.Player Master
 
Join Date: Jan 2003
Location: Romania
Age: 57
Posts: 5,235
Rep Power: 32
adicoto is on a distinguished road
Default

But BSPlayer has an embeded subtitles editor.
Reply With Quote
  #19 (permalink)  
Old 25th September 2008
Junior Member
BS.player Regular User
 
Join Date: Feb 2008
Location: Serbia
Posts: 11
Rep Power: 0
Condor is an unknown quantity at this point
Default

Quote:
Originally Posted by adicoto
But BSPlayer has an embeded subtitles editor.
Which not works that what I want to do... :D
Reply With Quote
  #20 (permalink)  
Old 25th September 2008
Moderator
BS.Player Master
 
Join Date: Jan 2003
Location: Romania
Age: 57
Posts: 5,235
Rep Power: 32
adicoto is on a distinguished road
Default

OK, so...what do you want to do with this plug-in ?
I recognise that I don't use BSPlayer's subtitle editor because every time I tested it, it was bugy and just get me nervous (because I just want to try using it). I am currently using an external aplication wich I am more than comfortable, with full of functionality I need. I generally create 2-3 subtitles each week and it's more than perfect for me. So...what do you want to add in this plug-in ?
Reply With Quote
Reply

Tags
plugin, subtitle


Posting Rules


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