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)
-   -   MSN plugin for BSplayer (http://forum.bsplayer.com/showthread.php?t=6509)

Tizio 9th May 2007 09:44 PM

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

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

XilasZ 10th May 2007 06:47 AM

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

RafkeP 11th May 2007 09:11 AM

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.

XilasZ 13th May 2007 11:24 AM

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

arana 16th July 2008 03:35 AM

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

Tizio 16th July 2008 05:56 PM

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

arana 17th July 2008 05:28 AM

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?

adicoto 17th July 2008 06:00 AM

Nod32 does have an antispyware module too.


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