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
51fd51a8
Commit
51fd51a8
authored
Oct 25, 2007
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework/VLCMediaPlayer.m: Implement Chapter and Audio selection. (Patch by Enrique Osuna).
parent
7750a98c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
extras/MacOSX/Framework/Headers/Public/VLCMediaPlayer.h
extras/MacOSX/Framework/Headers/Public/VLCMediaPlayer.h
+5
-0
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
+32
-0
No files found.
extras/MacOSX/Framework/Headers/Public/VLCMediaPlayer.h
View file @
51fd51a8
...
...
@@ -110,9 +110,14 @@ extern NSString *VLCMediaPlayerStateToString(VLCMediaPlayerState state);
*/
-
(
VLCTime
*
)
time
;
-
(
void
)
setChapter
:(
int
)
value
;
-
(
int
)
chapter
;
-
(
int
)
countOfChapters
;
/* Audio Options */
-
(
void
)
setAudioTrack
:(
int
)
value
;
-
(
int
)
audioTrack
;
-
(
int
)
countOfAudioTracks
;
-
(
void
)
setAudioChannel
:(
int
)
value
;
-
(
int
)
audioChannel
;
...
...
extras/MacOSX/Framework/Sources/VLCMediaPlayer.m
View file @
51fd51a8
...
...
@@ -296,6 +296,29 @@ NSString *VLCMediaPlayerStateToString(VLCMediaPlayerState state)
return
[
VLCTime
timeWithNumber
:[
NSNumber
numberWithLongLong
:
time
]];
}
-
(
void
)
setChapter
:(
int
)
value
;
{
libvlc_media_instance_set_chapter
(
instance
,
value
,
NULL
);
}
-
(
int
)
chapter
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
int
result
=
libvlc_media_instance_get_chapter
(
instance
,
&
ex
);
quit_on_exception
(
&
ex
);
return
result
;
}
-
(
int
)
countOfChapters
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
int
result
=
libvlc_media_instance_get_chapter_count
(
instance
,
&
ex
);
quit_on_exception
(
&
ex
);
return
result
;
}
-
(
void
)
setAudioTrack
:(
int
)
value
{
libvlc_audio_set_track
(
instance
,
value
,
NULL
);
...
...
@@ -310,6 +333,15 @@ NSString *VLCMediaPlayerStateToString(VLCMediaPlayerState state)
return
result
;
}
-
(
int
)
countOfAudioTracks
{
libvlc_exception_t
ex
;
libvlc_exception_init
(
&
ex
);
int
result
=
libvlc_audio_get_track_count
(
instance
,
&
ex
);
quit_on_exception
(
&
ex
);
return
result
;
}
-
(
void
)
setAudioChannel
:(
int
)
value
{
libvlc_audio_set_channel
(
instance
,
value
,
NULL
);
...
...
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