Signed-off-by: Pierre d'Herbemont <pdherbemont@free.fr>
* The receiver's state, such as Playing, Error, NothingSpecial, Buffering.
*/
@property (readonly) VLCMediaState state;
+
+/**
+ * Sets a value of the metaDictionary
+ */
+- (void)setValue:(id)value forMeta:(NSString *)VLCMetaInformation;
+
@end
return self;
}
+- (void)setValue:(NSString *)value forMeta:(NSString *)meta
+{
+ libvlc_meta_t metaName = [VLCMedia stringToMetaType:meta];
+ NSAssert(metaName >= 0, @"Invalid meta");
+ libvlc_media_set_meta(p_md, metaName, [value UTF8String]);
+}
+
- (void)release
{
@synchronized(self)