|
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 |
| |||
BSPlayer Subtitle Plugin... 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 |
| |||
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) |
| |||
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!!! |
| |||
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) |
| |||
Quote:
But I'm not going to surrender yet with this! ;) Quote:
Regards, Stole |
| |||
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) |
| |||
Quote:
Quote:
Regards |
| |||
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) |
| ||||
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! |
| |||
Quote:
Quote:
Regards |
| |||
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. |
| ||||
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! |
| |||
I think he wants to create a subtitles editor for BSplayer :roll: 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) |
| |||
Quote:
Quote:
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 |
| |||
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 ? |
Tags |
plugin, subtitle |
Thread Tools | Search this Thread |
Display Modes | |
| |