Commit a756e5ac authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MediaPlayer: Expose single track selection/unselection

parent 14b14cd2
...@@ -1876,6 +1876,18 @@ public: ...@@ -1876,6 +1876,18 @@ public:
ctracks.data(), ctracks.data(),
ctracks.size() ); 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 #endif
#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0) #if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment