1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
#include "nsISupports.idl"
[scriptable, uuid(f728830e-1dd1-4444-6666-fb9f414f2465)]
interface nsIScriptableWMPPlugin : nsISupports
{
void play();
void pause();
void stop();
};
[scriptable, uuid(f728830f-1dd1-4444-6666-fb9f414f2465)]
interface nsIScriptableMplayerPlugin : nsISupports
{
void Play();
void PlayAt(in double value);
void Pause();
void Stop();
void quit();
void DoPlay();
void DoPause();
void FastForward();
void FastReverse();
void ff();
void rew();
void rewind();
void Seek(in double value);
void Open(in string filename);
void SetVolume(in double value);
double GetVolume();
void SetFileName(in string filename);
void SetIsLooping(in boolean loop);
boolean GetIsLooping();
void SetAutoPlay(in boolean autoPlay);
boolean GetAutoPlay();
void SetHREF(in string url);
string GetHREF();
void SetURL(in string url);
string GetURL();
string GetMIMEType();
double getTime();
double getDuration();
double getPercent();
boolean isplaying();
void playlistAppend(in string item);
boolean playlistClear();
attribute string filename;
attribute string src;
attribute boolean ShowControls;
attribute boolean fullscreen;
attribute boolean showlogo;
readonly attribute long playState;
readonly attribute nsIScriptableWMPPlugin controls;
void onClick(in string event);
};
|