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
  #41 (permalink)  
Old 9th May 2007
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 XilasZ
As promised, here is the source code.

the method to change google talk message came from this forum
http://www.customizetalk.com/forums/viewtopic.php?t=33 but i changed a few things :p

And i used a simple timer class from http://www.cppfrance.com/code.aspx?ID=9374

All the rest is my own work :D
Congratulation! And thanks for the source (who knows, maybe I'll start produce some plugins once I'll find the time I have no more :roll: )

EDIT:
Only one question: I took a rapid look into your plugin source and the question is "why have you used a timer?"
In BS.Player SDK is available a number of callback calls that let you handle everything your plugin does without the need of a timer.
For example to know if the movie has changed (by doubleclick on the file, play button pressed, next/previous track buttons pressed etc.) there's a callback call for FILEOPEN event.

Then if you want to know if a movie is playing or not (since you want to display the watching message only if a movie is playing) you can check BSplayer status once a file is opened, and then listen for PLAY, STOP and PAUSE events... don't you? (maybe after every PAUSE event check the player status, I don't know if the PAUSE event can toggle the play status, but I think it acts like this, and sometimes toggle variables get messed up for some reasons)
Plus, if a user plays a song instead of a movie the word "watching" is not entirely correct, maybe you can check the file extension (at least for most common file names, for the unknown you can still pass the watching message)

Last suggestion:
Maybe make the "watching" (and maybe a future "listening") message customizable, so that everyone can change/translate it to fullfil his needs or follow his language style :

Just few suggestions, probably the filesize of the plugin will increase with these controls, but the instructions involved will be really reduced (and also the computing time and resources needed) :roll:

And again congratulation for the work done, keep up the great work
__________________
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
  #42 (permalink)  
Old 10th May 2007
Junior Member
BS.Player Newbie
 
Join Date: May 2007
Posts: 9
Rep Power: 0
XilasZ is an unknown quantity at this point
Default

Quote:
Only one question: I took a rapid look into your plugin source and the question is "why have you used a timer?"
I used a timer because when i start playing something, or when i hit pause or stop, there was no callback at all !!!. I know there is a PLAY event in the sdk, but the callback never happened.

EDIT: i tested it again (just put a MessageBox at the beginning of CallbackProc), and there is an event when i close bsplayer, when i click and the movie window, when i resize it, but nothing when i open/pause/stop a file. Maybe there is an issue in BS Player 2.20 ?

Quote:
Maybe make the "watching" (and maybe a future "listening") message customizable, so that everyone can change/translate it to fullfil his needs or follow his language style
That's the reason why i still wanted rafkeP's sources, he already did that in his plugin :p
But i'll take a look if you insists :p


PS: i have BSPlayer 2.20
Reply With Quote
  #43 (permalink)  
Old 11th May 2007
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:
I know there is a PLAY event in the sdk, but the callback never happened.
That's weird. I'm pretty sure I make use of these callbacks.
(I don't even know how to use timers :? )

If my plugin works with v2.20 you can be sure there's no issue with BSplayer. (and of course the opposite is also true).

I would check my code for you, but I've lost it:
it was on my USB stick which I left in a public PC.
Reply With Quote
  #44 (permalink)  
Old 13th May 2007
Junior Member
BS.Player Newbie
 
Join Date: May 2007
Posts: 9
Rep Power: 0
XilasZ is an unknown quantity at this point
Default

I upgraded to bsplayer 2.21, and still no callback for PLAY event.

You can try to compile the sample in the sdk, it should do something, but nothing happens for me (verified in debug, CallbackProc is not called).
Reply With Quote
  #45 (permalink)  
Old 16th July 2008
Junior Member
BS.player Regular User
 
Join Date: Sep 2003
Posts: 14
Rep Power: 0
arana is an unknown quantity at this point
Default plugin detected as trojan

my pc detected this as spyware, i surely hope it is a false positive since it works pretty well, any one notices this before?

this is in file MSN_Plugin_V4.dll

Spyware doctor identifies this plugin as

Trojan-Proxy.Ranky
a Threat that compromises the computer by opening a proxy server on it
in addition the detected sample contains the following characteistics:
- a malicious backdoor trojan that runs in the background and allows remote access to the compromised system.
the threat is also known as:

backdoor ranky
[symantec] proxy-FBSR
[mcafee]troj/bloproxy-a
[sophos]Trojan-proxy.Win32.Ranky.bp
[panda]Trojan-Proxy.Win32.Agent.mf
Reply With Quote
  #46 (permalink)  
Old 16th July 2008
Moderator
BS.Player Master
 
Join Date: Nov 2003
Location: Italy
Posts: 3,037
Rep Power: 28
Tizio will become famous soon enough
Default

It's a false positive, I don't know if you antivirus detect it as a trojan because it's packed with UPX or due to its heuristic features, but my antivirus (NOD32 with latest virii database) doesn't detect anything..

Plus, I know RafkeP by myself and I'm sure he will never pack a file to be distributed with such a malware ;)
__________________
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
  #47 (permalink)  
Old 17th July 2008
Junior Member
BS.player Regular User
 
Join Date: Sep 2003
Posts: 14
Rep Power: 0
arana is an unknown quantity at this point
Default

it was actually spyware doctor, i also have nod32 for viruses
but spyware is a different kind of beast.

damn i was hoping to stick with spyware dr (from google pack)
since avg antyspyware is no longer freeware.

any recommendations?
Reply With Quote
  #48 (permalink)  
Old 17th July 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

Nod32 does have an antispyware module too.
Reply With Quote
Reply

Tags
msn, plugin


Posting Rules


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