<div>---</div><div> .../macosx/framework/Headers/Public/VLCMedia.h     |   10 ++++++++++</div><div> projects/macosx/framework/Sources/VLCMedia.m       |   14 ++++++++++++++</div><div> 2 files changed, 24 insertions(+), 0 deletions(-)</div>
<div><br></div><div>diff --git a/projects/macosx/framework/Headers/Public/VLCMedia.h b/projects/macosx/framework/Headers/Public/VLCMedia.h</div><div>index 52954fb..eb5824a 100644</div><div>--- a/projects/macosx/framework/Headers/Public/VLCMedia.h</div>
<div>+++ b/projects/macosx/framework/Headers/Public/VLCMedia.h</div><div>@@ -332,4 +332,14 @@ extern NSString *VLCMediaTracksInformationTypeUnknown;</div><div>  */</div><div> - (void)parse;</div><div> </div><div>+/**************************************************************************</div>
<div>+ * Add options to the media, that will be used to determine how</div><div>+ * VLCMediaPlayer will read the media. This allow to use VLC advanced </div><div>+ * reading/streaming options in a per-media basis</div><div>
+ *</div><div>+ * The options are detailed in vlc --long-help, for instance "--sout-all"</div><div>+ * And on the web: <a href="http://wiki.videolan.org/VLC_command-line_help">http://wiki.videolan.org/VLC_command-line_help</a></div>
<div>+ **************************************************************************/</div><div>+- (void) addOptions:(NSDictionary*) options;</div><div>+</div><div> @end</div><div>diff --git a/projects/macosx/framework/Sources/VLCMedia.m b/projects/macosx/framework/Sources/VLCMedia.m</div>
<div>index 5f6fec5..f0e9cf3 100644</div><div>--- a/projects/macosx/framework/Sources/VLCMedia.m</div><div>+++ b/projects/macosx/framework/Sources/VLCMedia.m</div><div>@@ -324,6 +324,20 @@ static void HandleMediaParsedChanged(const libvlc_event_t * event, void * self)</div>
<div>     libvlc_media_parse_async(p_md);</div><div> }</div><div> </div><div>+- (void) addOptions:(NSDictionary*) options</div><div>+{</div><div>+<span class="Apple-tab-span" style="white-space:pre">     </span>if(p_md)</div>
<div>+<span class="Apple-tab-span" style="white-space:pre">     </span>{</div><div>+<span class="Apple-tab-span" style="white-space:pre">           </span>for( NSString * key in [options allKeys] )</div><div>+<span class="Apple-tab-span" style="white-space:pre">          </span>{</div>
<div>+<span class="Apple-tab-span" style="white-space:pre">                     </span>if ( [options objectForKey:key] != [NSNull null] )</div><div>+<span class="Apple-tab-span" style="white-space:pre">                          </span>libvlc_media_add_option(p_md, [[NSString stringWithFormat:@"%@=%@", key, [options objectForKey:key]] UTF8String]);</div>
<div>+<span class="Apple-tab-span" style="white-space:pre">                     </span>else</div><div>+<span class="Apple-tab-span" style="white-space:pre">                                </span>libvlc_media_add_option(p_md, [[NSString stringWithFormat:@"%@", key] UTF8String]);</div>
<div>+<span class="Apple-tab-span" style="white-space:pre">             </span>}</div><div>+<span class="Apple-tab-span" style="white-space:pre">   </span>}</div><div>+}</div><div>+</div><div> NSString *VLCMediaTracksInformationCodec = @"codec"; // NSNumber</div>
<div> NSString *VLCMediaTracksInformationId    = @"id";    // NSNumber</div><div> NSString *VLCMediaTracksInformationType  = @"type";  // NSString</div><div>-- </div><div>1.7.3.1</div><div><br></div>