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

Media: Add missing media type binding

parent cd6c4cbb
......@@ -123,6 +123,16 @@ public:
Done = libvlc_media_parse_done,
};
enum class Type
{
Unknown = libvlc_media_type_unknown,
File = libvlc_media_type_file,
Directory = libvlc_media_type_directory,
Disc = libvlc_media_type_disc,
Stream = libvlc_media_type_stream,
Playlist = libvlc_media_type_playlist,
};
/**
* @brief Media Constructs a libvlc Media instance
* @param instance A libvlc instance
......@@ -655,6 +665,11 @@ public:
return std::make_shared<MediaList>( p );
}
Type type()
{
return static_cast<Type>( libvlc_media_get_type( *this ) );
}
private:
/**
......
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