AppRTCDemo(iOS): allow rooms with no incoming audio.

Also fix a compile-time warning for a leftover unimplemented method
(RTCVideoRenderer:setTransform).

R=noahric@google.com

Review URL: https://webrtc-codereview.appspot.com/10629004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5780 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
fischman@webrtc.org 2014-03-25 17:40:38 +00:00
parent 6e3dbc2a77
commit 76d4f389bb
2 changed files with 2 additions and 5 deletions

View File

@ -43,9 +43,6 @@ struct CGRect;
// of frames.
- (id)initWithDelegate:(id<RTCVideoRendererDelegate>)delegate;
// Set an affine transform on relevant UIViews.
- (void)setTransform:(CGAffineTransform)transform;
// Starts rendering.
- (void)start;
// Stops rendering. It can be restarted again using the 'start' method above.

View File

@ -77,8 +77,8 @@
addedStream:(RTCMediaStream*)stream {
NSLog(@"PCO onAddStream.");
dispatch_async(dispatch_get_main_queue(), ^(void) {
NSAssert([stream.audioTracks count] >= 1,
@"Expected at least 1 audio stream");
NSAssert([stream.audioTracks count] <= 1,
@"Expected at most 1 audio stream");
NSAssert([stream.videoTracks count] <= 1,
@"Expected at most 1 video stream");
if ([stream.videoTracks count] != 0) {