Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLCKit
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Paul Kühne
VLCKit
Commits
6012c098
Commit
6012c098
authored
9 years ago
by
Felix Paul Kühne
Browse files
Options
Downloads
Patches
Plain Diff
media list player: add selectors to set drawable on init matching the media player class
parent
dc1b90ce
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Headers/Public/VLCMediaListPlayer.h
+2
-0
2 additions, 0 deletions
Headers/Public/VLCMediaListPlayer.h
NEWS
+4
-0
4 additions, 0 deletions
NEWS
Sources/VLCMediaListPlayer.m
+15
-2
15 additions, 2 deletions
Sources/VLCMediaListPlayer.m
with
21 additions
and
2 deletions
Headers/Public/VLCMediaListPlayer.h
+
2
−
0
View file @
6012c098
...
...
@@ -48,7 +48,9 @@ typedef NS_ENUM(NSInteger, VLCRepeatMode) {
@property
(
readwrite
)
VLCMedia
*
rootMedia
;
@property
(
readonly
)
VLCMediaPlayer
*
mediaPlayer
;
-
(
instancetype
)
initWithDrawable
:(
id
)
drawable
;
-
(
instancetype
)
initWithOptions
:(
NSArray
*
)
options
;
-
(
instancetype
)
initWithOptions
:(
NSArray
*
)
options
andDrawable
:(
id
)
drawable
;
/**
* Basic play, pause and stop are here. For other methods, use the mediaPlayer.
...
...
This diff is collapsed.
Click to expand it.
NEWS
+
4
−
0
View file @
6012c098
...
...
@@ -17,6 +17,10 @@ New APIs:
- added notifications: VLCMediaPlayerTitleChanged, VLCMediaPlayerChapterChanged
- Note: play's return type was changed from BOOL to void
- VLCMediaListPlayer
- added selectors: initWithDrawable:
initWithOptions:andDrawable:
- VLCMedia
- added keys: VLCMetaInformationTrackTotal, VLCMetaInformationDirector,
VLCMetaInformationSeason, VLCMetaInformationEpisode,
...
...
This diff is collapsed.
Click to expand it.
Sources/VLCMediaListPlayer.m
+
15
−
2
View file @
6012c098
...
...
@@ -42,7 +42,7 @@
@implementation
VLCMediaListPlayer
-
(
instancetype
)
initWithOptions
:(
NSArray
*
)
options
-
(
instancetype
)
initWithOptions
:(
NSArray
*
)
options
andDrawable
:(
id
)
drawable
{
if
(
self
=
[
super
init
])
{
VLCLibrary
*
library
;
...
...
@@ -52,14 +52,27 @@
library
=
[
VLCLibrary
sharedLibrary
];
instance
=
libvlc_media_list_player_new
([
library
instance
]);
_mediaPlayer
=
[[
VLCMediaPlayer
alloc
]
initWithLibVLCInstance
:
libvlc_media_list_player_get_media_player
(
instance
)
andLibrary
:
library
];
if
(
drawable
!=
nil
)
[
_mediaPlayer
setDrawable
:
drawable
];
}
return
self
;
}
-
(
instancetype
)
initWithOptions
:(
NSArray
*
)
options
{
return
[
self
initWithOptions
:
options
andDrawable
:
nil
];
}
-
(
instancetype
)
init
{
return
[
self
initWithOptions
:
nil
];
return
[
self
initWithOptions
:
nil
andDrawable
:
nil
];
}
-
(
instancetype
)
initWithDrawable
:(
id
)
drawable
{
return
[
self
initWithOptions
:
nil
andDrawable
:
drawable
];
}
-
(
void
)
dealloc
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment