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
55a60c20
Commit
55a60c20
authored
Oct 09, 2009
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
osx/framework: added convenience methods for jumps within a stream
parent
2996a461
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
111 additions
and
1 deletion
+111
-1
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
+52
-0
projects/macosx/framework/Sources/VLCMediaPlayer.m
projects/macosx/framework/Sources/VLCMediaPlayer.m
+59
-1
No files found.
projects/macosx/framework/Headers/Public/VLCMediaPlayer.h
View file @
55a60c20
...
...
@@ -190,6 +190,58 @@ extern NSString * VLCMediaPlayerStateToString(VLCMediaPlayerState state);
*/
-
(
void
)
rewindAtRate
:(
float
)
rate
;
/**
* Jumps shortly backward in current stream if seeking is supported.
* \param interval to skip, in sec.
*/
-
(
void
)
jumpBackward
:(
NSInteger
)
interval
;
/**
* Jumps shortly forward in current stream if seeking is supported.
* \param interval to skip, in sec.
*/
-
(
void
)
jumpForward
:(
NSInteger
)
interval
;
/**
* Jumps shortly backward in current stream if seeking is supported.
*/
-
(
void
)
extraShortJumpBackward
;
/**
* Jumps shortly forward in current stream if seeking is supported.
*/
-
(
void
)
extraShortJumpForward
;
/**
* Jumps shortly backward in current stream if seeking is supported.
*/
-
(
void
)
shortJumpBackward
;
/**
* Jumps shortly forward in current stream if seeking is supported.
*/
-
(
void
)
shortJumpForward
;
/**
* Jumps shortly backward in current stream if seeking is supported.
*/
-
(
void
)
mediumJumpBackward
;
/**
* Jumps shortly forward in current stream if seeking is supported.
*/
-
(
void
)
mediumJumpForward
;
/**
* Jumps shortly backward in current stream if seeking is supported.
*/
-
(
void
)
longJumpBackward
;
/**
* Jumps shortly forward in current stream if seeking is supported.
*/
-
(
void
)
longJumpForward
;
/* Playback Information */
/**
* Playback state flag identifying that the stream is currently playing.
...
...
projects/macosx/framework/Sources/VLCMediaPlayer.m
View file @
55a60c20
...
...
@@ -516,6 +516,64 @@ static void HandleMediaInstanceStateChanged(const libvlc_event_t * event, void *
[
self
setRate
:
-
rate
];
}
-
(
void
)
jumpBackward
:(
NSInteger
)
interval
{
if
(
[
self
isSeekable
]
)
{
interval
=
interval
*
1000000
;
[
self
setTime
:
[
VLCTime
timeWithInt
:
([[
self
time
]
intValue
]
-
interval
)]];
}
}
-
(
void
)
jumpForward
:(
NSInteger
)
interval
{
if
(
[
self
isSeekable
]
)
{
interval
=
interval
*
1000000
;
[
self
setTime
:
[
VLCTime
timeWithInt
:
([[
self
time
]
intValue
]
+
interval
)]];
}
}
-
(
void
)
extraShortJumpBackward
{
[
self
jumpBackward
:
3
];
}
-
(
void
)
extraShortJumpForward
{
[
self
jumpForward
:
3
];
}
-
(
void
)
shortJumpBackward
{
[
self
jumpBackward
:
10
];
}
-
(
void
)
shortJumpForward
{
[
self
jumpForward
:
10
];
}
-
(
void
)
mediumJumpBackward
{
[
self
jumpBackward
:
60
];
}
-
(
void
)
mediumJumpForward
{
[
self
jumpForward
:
60
];
}
-
(
void
)
longJumpBackward
{
[
self
jumpBackward
:
300
];
}
-
(
void
)
longJumpForward
{
[
self
jumpForward
:
300
];
}
+
(
NSSet
*
)
keyPathsForValuesAffectingIsPlaying
{
return
[
NSSet
setWithObjects
:
@"state"
,
nil
];
...
...
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