Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
YangLei
libvlcpp
Commits
1a68132a
Commit
1a68132a
authored
Jun 12, 2020
by
Hugo Beauzée-Luyssen
Browse files
MediaPlayer: Expose new track listing API
parent
5d3887a9
Changes
1
Hide whitespace changes
Inline
Side-by-side
vlcpp/MediaPlayer.hpp
View file @
1a68132a
...
...
@@ -40,6 +40,7 @@ class Instance;
class
Media
;
class
MediaPlayerEventManager
;
class
TrackDescription
;
class
TrackList
;
///
/// \brief The MediaPlayer class exposes libvlc_media_player_t functionnalities
...
...
@@ -1840,6 +1841,18 @@ public:
#endif
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
std
::
shared_ptr
<
TrackList
>
tracks
(
libvlc_track_type_t
type
)
{
auto
trackList
=
libvlc_media_player_get_tracklist
(
*
this
,
type
);
if
(
trackList
==
nullptr
)
return
nullptr
;
return
std
::
make_shared
<
TrackList
>
(
trackList
);
}
#endif
private:
std
::
vector
<
TrackDescription
>
getTracksDescription
(
libvlc_track_description_t
*
tracks
)
const
{
...
...
Write
Preview
Supports
Markdown
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