Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
5b34ebd8
Commit
5b34ebd8
authored
Feb 15, 2004
by
Olivier Teulière
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/gui/skins/*:
Added 'slow' and 'fast' events to play a stream slower/faster
parent
2ad9f25d
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
62 additions
and
6 deletions
+62
-6
doc/skins/events-howto.txt
doc/skins/events-howto.txt
+10
-0
modules/gui/skins/src/banks.cpp
modules/gui/skins/src/banks.cpp
+3
-1
modules/gui/skins/src/event.cpp
modules/gui/skins/src/event.cpp
+5
-1
modules/gui/skins/src/event.h
modules/gui/skins/src/event.h
+3
-1
modules/gui/skins/src/vlcproc.cpp
modules/gui/skins/src/vlcproc.cpp
+38
-2
modules/gui/skins/src/vlcproc.h
modules/gui/skins/src/vlcproc.h
+3
-1
No files found.
doc/skins/events-howto.txt
View file @
5b34ebd8
...
...
@@ -100,6 +100,14 @@ EVENT is the action to execute, it can be one of the following:
Action : go to the previous file in the playlist.
Parameters: none.
- VLC_SLOWER:
Action : play the stream slower.
Parameters: none.
- VLC_FASTER:
Action : play the stream faster.
Parameters: none.
- VLC_STREAMPOS:
Not supported yet.
...
...
@@ -196,6 +204,8 @@ shortcut.
stop V Stop.
next B Next file.
prev Z Previous file.
slow Play slower.
fast Play faster.
fullscreen F Switch to fullscreen mode.
mute Mute the sound.
volume_up
...
...
modules/gui/skins/src/banks.cpp
View file @
5b34ebd8
...
...
@@ -2,7 +2,7 @@
* banks.cpp: Bitmap bank, Event bank, Font bank and OffSet bank
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: banks.cpp,v 1.1
1 2003/10/17 20:21:59
ipkiss Exp $
* $Id: banks.cpp,v 1.1
2 2004/02/15 18:58:38
ipkiss Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -164,6 +164,8 @@ EventBank::EventBank( intf_thread_t *_p_intf )
Add
(
"stop"
,
"VLC_STOP"
,
"V"
);
Add
(
"next"
,
"VLC_NEXT"
,
"B"
);
Add
(
"prev"
,
"VLC_PREV"
,
"Z"
);
Add
(
"slow"
,
"VLC_SLOWER"
,
"none"
);
Add
(
"fast"
,
"VLC_FASTER"
,
"none"
);
Add
(
"fullscreen"
,
"VLC_FULLSCREEN"
,
"F"
);
// Volume control
...
...
modules/gui/skins/src/event.cpp
View file @
5b34ebd8
...
...
@@ -2,7 +2,7 @@
* event.cpp: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.cpp,v 1.2
3 2003/10/17 18:17:2
8 ipkiss Exp $
* $Id: event.cpp,v 1.2
4 2004/02/15 18:58:3
8 ipkiss Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -146,6 +146,10 @@ unsigned int Event::GetMessageType( string Desc )
return
VLC_STREAM_TITLE
;
else
if
(
Desc
==
"VLC_HELP_TEXT"
)
return
VLC_HELP_TEXT
;
else
if
(
Desc
==
"VLC_SLOWER"
)
return
VLC_SLOWER
;
else
if
(
Desc
==
"VLC_FASTER"
)
return
VLC_FASTER
;
// Volume control
else
if
(
Desc
==
"VLC_VOLUME_CHANGE"
)
...
...
modules/gui/skins/src/event.h
View file @
5b34ebd8
...
...
@@ -2,7 +2,7 @@
* event.h: Event class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: event.h,v 1.1
5 2003/10/17 18:17:2
8 ipkiss Exp $
* $Id: event.h,v 1.1
6 2004/02/15 18:58:3
8 ipkiss Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -84,6 +84,8 @@ using namespace std;
#define VLC_STREAM_NAME (VLC_MESSAGE + 109)
#define VLC_STREAM_TITLE (VLC_MESSAGE + 110)
#define VLC_HELP_TEXT (VLC_MESSAGE + 111)
#define VLC_SLOWER (VLC_MESSAGE + 112)
#define VLC_FASTER (VLC_MESSAGE + 113)
// Volume control
#define VLC_VOLUME_CHANGE (VLC_MESSAGE + 201)
...
...
modules/gui/skins/src/vlcproc.cpp
View file @
5b34ebd8
...
...
@@ -2,7 +2,7 @@
* vlcproc.cpp: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.cpp,v 1.5
3 2004/01/05 13:07:03 zorglub
Exp $
* $Id: vlcproc.cpp,v 1.5
4 2004/02/15 18:58:38 ipkiss
Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -52,7 +52,7 @@ VlcProc::VlcProc( intf_thread_t *_p_intf )
VLC_OBJECT_PLAYLIST
,
FIND_ANYWHERE
);
if
(
p_playlist
!=
NULL
)
{
// We want to be notified of playlit changes
// We want to be notified of playli
s
t changes
var_AddCallback
(
p_playlist
,
"intf-change"
,
RefreshCallback
,
this
);
// Raise/lower interface with middle click on vout
...
...
@@ -162,6 +162,14 @@ bool VlcProc::EventProc( Event *evt )
PrevStream
();
return
true
;
case
VLC_SLOWER
:
SlowStream
();
return
true
;
case
VLC_FASTER
:
FastStream
();
return
true
;
case
VLC_PLAYLIST_ADD_FILE
:
p_intf
->
p_sys
->
p_dialogs
->
ShowOpen
(
false
);
InterfaceRefresh
();
...
...
@@ -532,6 +540,34 @@ void VlcProc::PrevStream()
InterfaceRefresh
();
}
//---------------------------------------------------------------------------
void
VlcProc
::
SlowStream
()
{
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_input
)
{
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_input
,
"rate-slower"
,
val
);
vlc_object_release
(
p_input
);
}
}
//---------------------------------------------------------------------------
void
VlcProc
::
FastStream
()
{
input_thread_t
*
p_input
=
(
input_thread_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
if
(
p_input
)
{
vlc_value_t
val
;
val
.
b_bool
=
VLC_TRUE
;
var_Set
(
p_input
,
"rate-faster"
,
val
);
vlc_object_release
(
p_input
);
}
}
//---------------------------------------------------------------------------
void
VlcProc
::
MoveStream
(
long
Pos
)
{
if
(
p_intf
->
p_sys
->
p_input
==
NULL
)
...
...
modules/gui/skins/src/vlcproc.h
View file @
5b34ebd8
...
...
@@ -2,7 +2,7 @@
* vlcproc.h: VlcProc class
*****************************************************************************
* Copyright (C) 2003 VideoLAN
* $Id: vlcproc.h,v 1.1
1 2003/10/22 19:12:56
ipkiss Exp $
* $Id: vlcproc.h,v 1.1
2 2004/02/15 18:58:38
ipkiss Exp $
*
* Authors: Olivier Teulire <ipkiss@via.ecp.fr>
* Emmanuel Puig <karibu@via.ecp.fr>
...
...
@@ -47,6 +47,8 @@ class VlcProc
void
StopStream
();
void
NextStream
();
void
PrevStream
();
void
SlowStream
();
void
FastStream
();
void
MoveStream
(
long
Pos
);
void
FullScreen
();
void
ChangeVolume
(
unsigned
int
msg
,
long
param
);
...
...
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