Commit 7a73b990 authored by Felix Paul Kühne's avatar Felix Paul Kühne

osx/framework: minor rtp streaming improvement

parent 71d64fc8
......@@ -49,7 +49,8 @@
[NSDictionary dictionaryWithObjectsAndKeys:
@"ts", @"muxer",
@"file", @"access",
@"sap", @"sdp",
@"sdp", @"sdp",
@"sap", @"sap",
name, @"name",
@"239.255.1.1", @"destination", nil
], @"rtpOptions",
......@@ -200,9 +201,11 @@
NSString * destination = [rtpOptions objectForKey:@"destination"];
NSString * sdp = [rtpOptions objectForKey:@"sdp"];
NSString * name = [rtpOptions objectForKey:@"name"];
NSString * sap = [rtpOptions objectForKey:@"sap"];
if( muxer ) [subOptions addObject:[NSString stringWithFormat:@"muxer=%@", muxer]];
if( destination ) [subOptions addObject:[NSString stringWithFormat:@"dst=%@", destination]];
if( sdp ) [subOptions addObject:[NSString stringWithFormat:@"sdp=%@", sdp]];
if( sap ) [subOptions addObject:@"sap"];
if( name ) [subOptions addObject:[NSString stringWithFormat:@"name=\"%@\"", name]];
[optionsAsArray addObject:[NSString stringWithFormat:@"rtp{%@}", [subOptions componentsJoinedByString:@","]]];
[subOptions removeAllObjects];
......
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