Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
9922b46c
Commit
9922b46c
authored
Feb 11, 2010
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
activex: implement JS Events
parent
488909d8
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
479 additions
and
3 deletions
+479
-3
projects/activex/axvlc.idl
projects/activex/axvlc.idl
+65
-0
projects/activex/axvlc.tlb
projects/activex/axvlc.tlb
+0
-0
projects/activex/axvlc_idl.c
projects/activex/axvlc_idl.c
+1
-1
projects/activex/axvlc_idl.h
projects/activex/axvlc_idl.h
+37
-1
projects/activex/plugin.cpp
projects/activex/plugin.cpp
+350
-1
projects/activex/plugin.h
projects/activex/plugin.h
+26
-0
No files found.
projects/activex/axvlc.idl
View file @
9922b46c
...
...
@@ -168,6 +168,28 @@ library AXVLC
const
int
DISPID_PauseEvent
=
101
;
const
int
DISPID_StopEvent
=
102
;
/*
async
events
from
libvlc
*/
const
int
DISPID_NothingSpecialEvent
=
200
;
const
int
DISPID_OpeningEvent
=
201
;
const
int
DISPID_BufferingEvent
=
202
;
const
int
DISPID_PlayingEvent
=
203
;
const
int
DISPID_PausedEvent
=
204
;
const
int
DISPID_ForwardEvent
=
205
;
const
int
DISPID_BackwardEvent
=
206
;
const
int
DISPID_EncounteredErrorEvent
=
207
;
const
int
DISPID_EndReachedEvent
=
208
;
const
int
DISPID_StoppedEvent
=
209
;
const
int
DISPID_TimeChangedEvent
=
210
;
const
int
DISPID_PositionChangedEvent
=
211
;
const
int
DISPID_SeekableChangedEvent
=
212
;
const
int
DISPID_PausableChangedEvent
=
213
;
const
int
DISPID_MouseButtonEvent
=
214
;
const
int
DISPID_MouseMovedEvent
=
215
;
const
int
DISPID_MouseClickedEvent
=
216
;
const
int
DISPID_MouseObjectEvent
=
217
;
[
uuid
(
DF48072F
-
5
EF8
-434e-9
B40
-
E2F3AE759B5F
),
helpstring
(
"Event interface for VLC control"
),
...
...
@@ -182,6 +204,48 @@ library AXVLC
void
pause
()
;
[
id
(
DISPID_StopEvent
),
helpstring
(
"Stopped"
)
]
void
stop
()
;
/*
asyn
events
from
libvlc
*/
[
id
(
DISPID_NothingSpecialEvent
),
helpstring
(
"Idle state"
)
]
void
idle
()
;
[
id
(
DISPID_OpeningEvent
),
helpstring
(
"Opening media"
)
]
void
opening
()
;
[
id
(
DISPID_BufferingEvent
),
helpstring
(
"Buffering media"
)
]
void
buffering
()
;
[
id
(
DISPID_PlayingEvent
),
helpstring
(
"Media is playing"
)
]
void
playing
()
;
[
id
(
DISPID_PausedEvent
),
helpstring
(
"Media is paused"
)
]
void
paused
()
;
[
id
(
DISPID_ForwardEvent
),
helpstring
(
"Forward playback"
)
]
void
forward
()
;
[
id
(
DISPID_BackwardEvent
),
helpstring
(
"Backward playback"
)
]
void
backward
()
;
[
id
(
DISPID_EncounteredErrorEvent
),
helpstring
(
"An error has been encountered"
)
]
void
error
()
;
[
id
(
DISPID_EndReachedEvent
),
helpstring
(
"End of playback reached"
)
]
void
ended
()
;
[
id
(
DISPID_StoppedEvent
),
helpstring
(
"Playback stopped"
)
]
void
stopped
()
;
[
id
(
DISPID_TimeChangedEvent
),
helpstring
(
"Time changed"
)
]
void
TimeChanged
(
[
in
]
long
time
)
;
[
id
(
DISPID_PositionChangedEvent
),
helpstring
(
"Position changed"
)
]
void
PositionChanged
(
[
in
]
long
position
)
;
[
id
(
DISPID_SeekableChangedEvent
),
helpstring
(
"Seek changed"
)
]
void
SeekableChanged
(
[
in
]
VARIANT_BOOL
seekable
)
;
[
id
(
DISPID_PausableChangedEvent
),
helpstring
(
"Pause setting changed"
)
]
void
PausableChanged
(
[
in
]
VARIANT_BOOL
pausable
)
;
[
id
(
DISPID_MouseButtonEvent
),
helpstring
(
"Mouse button pressed"
)
]
void
MouseButton
(
[
in
]
VARIANT_BOOL
btn_right
,
[
in
]
VARIANT_BOOL
btn_center
,
[
in
]
VARIANT_BOOL
btn_left
,
[
in
]
VARIANT_BOOL
btn_wheel_up
,
[
in
]
VARIANT_BOOL
bnt_wheel_down
)
;
[
id
(
DISPID_MouseMovedEvent
),
helpstring
(
"Mouse moved"
)
]
void
MouseMoved
(
[
in
]
long
x
,
[
in
]
long
y
)
;
[
id
(
DISPID_MouseClickedEvent
),
helpstring
(
"Mouse clicked"
)
]
void
MouseClicked
(
[
in
]
VARIANT_BOOL
clicked
)
;
[
id
(
DISPID_MouseObjectEvent
),
helpstring
(
"Mouse selected holds object"
)
]
void
MouseObject
(
[
in
]
VARIANT_BOOL
moved
)
;
}
;
[
...
...
@@ -619,5 +683,6 @@ library AXVLC
{
[
default
]
interface
IVLCControl2
;
interface
IVLCControl
;
[
default
,
source
]
dispinterface
DVLCEvents
;
}
;
}
;
projects/activex/axvlc.tlb
View file @
9922b46c
No preview for this file type
projects/activex/axvlc_idl.c
View file @
9922b46c
/*** Autogenerated by WIDL 1.1.
23
from axvlc.idl - Do not edit ***/
/*** Autogenerated by WIDL 1.1.
36
from axvlc.idl - Do not edit ***/
#include <rpc.h>
#include <rpcndr.h>
...
...
projects/activex/axvlc_idl.h
View file @
9922b46c
/*** Autogenerated by WIDL 1.1.
23
from axvlc.idl - Do not edit ***/
/*** Autogenerated by WIDL 1.1.
36
from axvlc.idl - Do not edit ***/
#include <rpc.h>
#include <rpcndr.h>
...
...
@@ -793,6 +793,42 @@ void __RPC_STUB IVLCControl_put_AutoLoop_Stub(
#define DISPID_StopEvent (102)
#define DISPID_NothingSpecialEvent (200)
#define DISPID_OpeningEvent (201)
#define DISPID_BufferingEvent (202)
#define DISPID_PlayingEvent (203)
#define DISPID_PausedEvent (204)
#define DISPID_ForwardEvent (205)
#define DISPID_BackwardEvent (206)
#define DISPID_EncounteredErrorEvent (207)
#define DISPID_EndReachedEvent (208)
#define DISPID_StoppedEvent (209)
#define DISPID_TimeChangedEvent (210)
#define DISPID_PositionChangedEvent (211)
#define DISPID_SeekableChangedEvent (212)
#define DISPID_PausableChangedEvent (213)
#define DISPID_MouseButtonEvent (214)
#define DISPID_MouseMovedEvent (215)
#define DISPID_MouseClickedEvent (216)
#define DISPID_MouseObjectEvent (217)
/*****************************************************************************
* DVLCEvents dispinterface
*/
...
...
projects/activex/plugin.cpp
View file @
9922b46c
This diff is collapsed.
Click to expand it.
projects/activex/plugin.h
View file @
9922b46c
...
...
@@ -238,6 +238,30 @@ public:
void
fireOnPauseEvent
(
void
);
void
fireOnStopEvent
(
void
);
// async events;
void
fireOnIdleEvent
();
void
fireOnOpeningEvent
();
void
fireOnBufferingEvent
();
void
fireOnPlayingEvent
();
void
fireOnPausedEvent
();
void
fireOnErrorEvent
();
void
fireOnEndedEvent
();
void
fireOnStoppedEvent
();
void
fireOnForwardEvent
();
void
fireOnBackwardEvent
();
void
fireOnTimeChangedEvent
(
long
time
);
void
fireOnPositionChangedEvent
(
long
position
);
void
fireOnSeekableChangedEvent
(
VARIANT_BOOL
seekable
);
void
fireOnPausableChangedEvent
(
VARIANT_BOOL
pausable
);
void
fireOnMouseButtonEvent
(
VARIANT_BOOL
btn_right
,
VARIANT_BOOL
btn_center
,
VARIANT_BOOL
btn_left
,
VARIANT_BOOL
btn_wheel_up
,
VARIANT_BOOL
bnt_wheel_down
);
void
fireOnMouseMovedEvent
(
long
x
,
long
y
);
void
fireOnMouseClickedEvent
(
VARIANT_BOOL
clicked
);
void
fireOnMouseObjectEvent
(
VARIANT_BOOL
moved
);
// controlling IUnknown interface
LPUNKNOWN
pUnkOuter
;
...
...
@@ -316,6 +340,8 @@ private:
void
initVLC
();
bool
playlist_select
(
int
i
);
void
set_player_window
();
void
player_register_events
();
void
player_unregister_events
();
//implemented interfaces
class
VLCOleObject
*
vlcOleObject
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment