Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
56637aa9
Commit
56637aa9
authored
Aug 28, 2009
by
Olivier Aubert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
python-ctypes: define additional docstrings
parent
96a96f60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
+24
-0
bindings/python-ctypes/override.py
bindings/python-ctypes/override.py
+24
-0
No files found.
bindings/python-ctypes/override.py
View file @
56637aa9
...
...
@@ -86,18 +86,34 @@ class MediaControl:
return
None
def
set_media_position
(
self
,
pos
):
"""Set the media position.
@param pos: a MediaControlPosition or an integer (in ms)
"""
if
not
isinstance
(
pos
,
MediaControlPosition
):
pos
=
MediaControlPosition
(
origin
=
PositionOrigin
.
AbsolutePosition
,
key
=
PositionKey
.
MediaTime
,
value
=
long
(
pos
))
e
=
MediaControlException
()
mediacontrol_set_media_position
(
self
,
pos
,
e
)
def
start
(
self
,
pos
=
0
):
"""Start the player at the given position.
@param pos: a MediaControlPosition or an integer (in ms)
"""
if
not
isinstance
(
pos
,
MediaControlPosition
):
pos
=
MediaControlPosition
(
origin
=
PositionOrigin
.
AbsolutePosition
,
key
=
PositionKey
.
MediaTime
,
value
=
long
(
pos
))
e
=
MediaControlException
()
mediacontrol_start
(
self
,
pos
,
e
)
def
snapshot
(
self
,
pos
=
0
):
"""Take a snapshot.
Note: the position parameter is not properly implemented. For
the moment, the only valid position is the 0-relative position
(i.e. the current position).
@param pos: a MediaControlPosition or an integer (in ms)
"""
if
not
isinstance
(
pos
,
MediaControlPosition
):
pos
=
MediaControlPosition
(
origin
=
PositionOrigin
.
AbsolutePosition
,
key
=
PositionKey
.
MediaTime
,
value
=
long
(
pos
))
e
=
MediaControlException
()
...
...
@@ -108,6 +124,12 @@ class MediaControl:
return
None
def
display_text
(
self
,
message
=
''
,
begin
=
0
,
end
=
1000
):
"""Display a caption between begin and end positions.
@param message: the caption to display
@param begin: the begin position
@param end: the end position
"""
if
not
isinstance
(
begin
,
MediaControlPosition
):
begin
=
MediaControlPosition
(
origin
=
PositionOrigin
.
AbsolutePosition
,
key
=
PositionKey
.
MediaTime
,
value
=
long
(
begin
))
if
not
isinstance
(
end
,
MediaControlPosition
):
...
...
@@ -116,6 +138,8 @@ class MediaControl:
mediacontrol_display_text
(
self
,
message
,
begin
,
end
,
e
)
def
get_stream_information
(
self
,
key
=
PositionKey
.
MediaTime
):
"""Return information about the stream.
"""
e
=
MediaControlException
()
return
mediacontrol_get_stream_information
(
self
,
key
,
e
).
contents
...
...
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