Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
libvlcpp
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
VideoLAN
libvlcpp
Compare revisions
cc5c05311061ac3d2af0b36899b8558a4b1833d8 to a756e5ac4a32c76abd78b148a210ac8e09e17813
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
videolan/libvlcpp
Select target project
No results found
a756e5ac4a32c76abd78b148a210ac8e09e17813
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Swap
Target
videolan/libvlcpp
Select target project
videolan/libvlcpp
robUx4/libvlcpp
stolyarchuk/libvlcpp
hacker1024/libvlcpp
mfkl/libvlcpp
The-personified-devil/libvlcpp
chouquette/libvlcpp
aillean/libvlcpp
adtadas19/libvlcpp
aad9805066254/libvlcpp
asenat/libvlcpp
rovenmaburak/libvlcpp
mstorsjo/libvlcpp
ranjuranjith/libvlcpp
tguillem/libvlcpp
akbaralisalar/libvlcpp
king7532/libvlcpp
Skantes/libvlcpp
f45431082/libvlcpp
alexandre-janniaux/libvlcpp
deyayush6/libvlcpp
21 results
cc5c05311061ac3d2af0b36899b8558a4b1833d8
Select Git revision
Branches
autotools
cppcx
master
Tags
0.1.0
0.1.0-rc1
0.1.0-rc2
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
MediaPlayer: Deprecate old tracks API
· 14b14cd2
Hugo Beauzée-Luyssen
authored
4 years ago
14b14cd2
MediaPlayer: Expose single track selection/unselection
· a756e5ac
Hugo Beauzée-Luyssen
authored
4 years ago
a756e5ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vlcpp/MediaPlayer.hpp
+21
-0
21 additions, 0 deletions
vlcpp/MediaPlayer.hpp
with
21 additions
and
0 deletions
vlcpp/MediaPlayer.hpp
View file @
a756e5ac
...
...
@@ -967,6 +967,7 @@ public:
return
libvlc_audio_set_volume
(
*
this
,
i_volume
)
==
0
;
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get number of available audio tracks.
*
...
...
@@ -1008,6 +1009,7 @@ public:
{
return
libvlc_audio_set_track
(
*
this
,
i_track
)
==
0
;
}
#endif
/**
* Get current audio channel.
...
...
@@ -1276,6 +1278,7 @@ public:
libvlc_video_set_aspect_ratio
(
*
this
,
ar
.
size
()
>
0
?
ar
.
c_str
()
:
nullptr
);
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get current video subtitle.
*
...
...
@@ -1319,6 +1322,7 @@ public:
{
return
libvlc_video_set_spu
(
*
this
,
i_spu
);
}
#endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(3, 0, 0, 0)
/**
...
...
@@ -1553,6 +1557,7 @@ public:
libvlc_video_set_teletext
(
*
this
,
i_page
);
}
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
/**
* Get number of available video tracks.
*
...
...
@@ -1595,6 +1600,7 @@ public:
{
return
libvlc_video_set_track
(
*
this
,
i_track
);
}
#endif
/**
* Take a snapshot of the current video window.
...
...
@@ -1870,8 +1876,22 @@ public:
ctracks
.
data
(),
ctracks
.
size
()
);
}
void
selectTrack
(
const
MediaTrack
&
track
)
{
libvlc_media_player_select_track
(
*
this
,
track
);
}
void
unselectTrackType
(
MediaTrack
::
Type
type
)
{
libvlc_media_player_unselect_track_type
(
*
this
,
static_cast
<
libvlc_track_type_t
>
(
type
)
);
}
#endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
private
:
std
::
vector
<
TrackDescription
>
getTracksDescription
(
libvlc_track_description_t
*
tracks
)
const
{
...
...
@@ -1888,6 +1908,7 @@ private:
}
return
result
;
}
#endif
private
:
std
::
shared_ptr
<
MediaPlayerEventManager
>
m_eventManager
;
...
...
This diff is collapsed.
Click to expand it.