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

cppcx: Expose Media::type method

parent acf93721
......@@ -113,6 +113,11 @@ namespace libVLCX
return ref new MediaList(*m_media.subitems());
}
MediaType Media::type()
{
return static_cast<MediaType>(m_media.type());
}
Media::Media(const VLC::Media& media)
: m_media(media)
{
......
......@@ -114,6 +114,16 @@ namespace libVLCX
AsNode,
};
public enum class MediaType
{
Unknown = VLC::Media::Type::Unknown,
File = VLC::Media::Type::File,
Directory = VLC::Media::Type::Directory,
Disc = VLC::Media::Type::Disc,
Stream = VLC::Media::Type::Stream,
Playlist = VLC::Media::Type::Playlist,
};
public ref class Media sealed
{
public:
......@@ -297,6 +307,8 @@ namespace libVLCX
MediaList^ subItems();
MediaType type();
private:
~Media(){}
......
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