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