Commit ff0c44e1 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

cppcx: Expose track events

parent 789fa874
......@@ -129,17 +129,17 @@ namespace libVLCX
void MediaPlayerEventCb::eSAdded(libvlc_track_type_t, int)
void MediaPlayerEventCb::eSAdded(libvlc_track_type_t type, int trackId)
m_em->OnTrackAdded((TrackType) type, trackId);
void MediaPlayerEventCb::eSDeleted(libvlc_track_type_t, int)
void MediaPlayerEventCb::eSDeleted(libvlc_track_type_t type, int trackId)
m_em->OnTrackDeleted((TrackType) type, trackId);
void MediaPlayerEventCb::eSSelected(libvlc_track_type_t, int)
void MediaPlayerEventCb::eSSelected(libvlc_track_type_t type, int trackId)
m_em->OnTrackSelected((TrackType) type, trackId);
EventManager::EventManager(VLC::EventManager& em)
......@@ -22,6 +22,7 @@
#include "EventManager.hpp"
#include "Media.hpp"
#include "StructuresCX.hpp"
#include <memory>
......@@ -49,9 +50,9 @@ namespace libVLCX
public delegate void LengthChanged(libvlc_time_t);
public delegate void Vout(int);
public delegate void ScrambledChanged(int);
//public delegate void ESAdded(libvlc_track_type_t, int);
//public delegate void ESDeleted(libvlc_track_type_t, int);
//public delegate void ESSelected(libvlc_track_type_t, int);
public delegate void ESAdded(TrackType, int);
public delegate void ESDeleted(TrackType, int);
public delegate void ESSelected(TrackType, int);
ref class EventManager;
......@@ -109,6 +110,9 @@ namespace libVLCX
event LengthChanged^ OnLengthChanged;
event Vout^ OnVoutCountChanged;
event ScrambledChanged^ OnScrambledChanged;
event ESAdded^ OnTrackAdded;
event ESDeleted^ OnTrackDeleted;
event ESSelected^ OnTrackSelected;
EventManager(VLC::EventManager& em);
......@@ -70,7 +70,6 @@ namespace libVLCX
public ref class Media sealed
Markdown is supported
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