Commit 3780ceba authored by Emmanuel de Roux's avatar Emmanuel de Roux Committed by Pierre d'Herbemont

macosx/framework : added method setValue:forMeta: to VLCMedia

Signed-off-by: default avatarPierre d'Herbemont <pdherbemont@free.fr>
parent 14083ca0
...@@ -224,4 +224,10 @@ typedef enum VLCMediaState ...@@ -224,4 +224,10 @@ typedef enum VLCMediaState
* The receiver's state, such as Playing, Error, NothingSpecial, Buffering. * The receiver's state, such as Playing, Error, NothingSpecial, Buffering.
*/ */
@property (readonly) VLCMediaState state; @property (readonly) VLCMediaState state;
/**
* Sets a value of the metaDictionary
*/
- (void)setValue:(id)value forMeta:(NSString *)VLCMetaInformation;
@end @end
...@@ -211,6 +211,13 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self) ...@@ -211,6 +211,13 @@ static void HandleMediaSubItemAdded(const libvlc_event_t * event, void * self)
return self; 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 - (void)release
{ {
@synchronized(self) @synchronized(self)
......
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