Skip to content

Commit

Permalink
Built against commit 5a3ebd761cb2789aa63e4ae7c0035234a3e3b5f3 (plus f…
Browse files Browse the repository at this point in the history
…ixes for ARM64 and video orientation).
  • Loading branch information
kapejod committed May 26, 2015
1 parent f2c2e9c commit a423971
Show file tree
Hide file tree
Showing 106 changed files with 85 additions and 28 deletions.
4 changes: 2 additions & 2 deletions WebRTC.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Pod::Spec.new do |s|

s.source_files = "include/*.h"
s.public_header_files = "include/*.h"
s.preserve_path = "lib/libCNG.a", "lib/libG711.a", "lib/libG722.a", "lib/libPCM16B.a", "lib/lib_core_neon_offsets.a", "lib/libaudio_coding_module.a", "lib/libaudio_conference_mixer.a", "lib/libaudio_device.a", "lib/libaudio_decoder_interface.a", "lib/libaudio_processing.a", "lib/libaudio_processing_neon.a", "lib/libaudio_processing_sse2.a", "lib/libbitrate_controller.a", "lib/libcommon_audio.a", "lib/libcommon_audio_neon.a", "lib/libcommon_audio_sse2.a", "lib/libcommon_video.a", "lib/libcrnspr.a", "lib/libcrnss.a", "lib/libcrnssckbi.a", "lib/libcrssl.a", "lib/libexpat.a", "lib/libfield_trial_default.a", "lib/libiLBC.a", "lib/libiSAC.a", "lib/libiSACFix.a", "lib/libicudata.a", "lib/libicui18n.a", "lib/libicuuc.a", "lib/libisac_neon.a", "lib/libjingle_media.a", "lib/libjingle_p2p.a", "lib/libjingle_peerconnection.a", "lib/libjingle_peerconnection_objc.a", "lib/libjsoncpp.a", "lib/libmedia_file.a", "lib/libmetrics_default.a", "lib/libneteq.a", "lib/libnss_static.a", "lib/libopus.a", "lib/libpaced_sender.a", "lib/librbe_components.a", "lib/libremote_bitrate_estimator.a", "lib/librtc_base.a", "lib/librtc_base_approved.a", "lib/librtc_p2p.a", "lib/librtc_sound.a", "lib/librtc_xmllite.a", "lib/librtc_xmpp.a", "lib/librtp_rtcp.a", "lib/libsqlite_regexp.a", "lib/libsrtp.a", "lib/libsystem_wrappers.a", "lib/libusrsctplib.a", "lib/libvideo_capture_module.a", "lib/libvideo_capture_module_internal_impl.a", "lib/libvideo_coding_utility.a", "lib/libvideo_engine_core.a", "lib/libvideo_processing.a", "lib/libvideo_processing_sse2.a", "lib/libvideo_render_module.a", "lib/libvideo_render_module_internal_impl.a", "lib/libvoice_engine.a", "lib/libvpx.a", "lib/libvpx_asm_offsets_vp8.a", "lib/libvpx_asm_offsets_vpx_scale.a", "lib/libvpx_intrinsics_mmx.a", "lib/libvpx_intrinsics_sse2.a", "lib/libvpx_intrinsics_sse4_1.a", "lib/libvpx_intrinsics_ssse3.a", "lib/libwebrtc.a", "lib/libwebrtc_common.a", "lib/libwebrtc_i420.a", "lib/libwebrtc_opus.a", "lib/libwebrtc_utility.a", "lib/libwebrtc_video_coding.a", "lib/libwebrtc_vp8.a", "lib/libwebrtc_vp9.a", "lib/libyuv.a", "lib/libyuv_neon.a"
s.vendored_libraries = "lib/libCNG.a", "lib/libG711.a", "lib/libG722.a", "lib/libPCM16B.a", "lib/lib_core_neon_offsets.a", "lib/libaudio_coding_module.a", "lib/libaudio_conference_mixer.a", "lib/libaudio_device.a", "lib/libaudio_decoder_interface.a", "lib/libaudio_processing.a", "lib/libaudio_processing_neon.a", "lib/libaudio_processing_sse2.a", "lib/libbitrate_controller.a", "lib/libcommon_audio.a", "lib/libcommon_audio_neon.a", "lib/libcommon_audio_sse2.a", "lib/libcommon_video.a", "lib/libcrnspr.a", "lib/libcrnss.a", "lib/libcrnssckbi.a", "lib/libcrssl.a", "lib/libexpat.a", "lib/libfield_trial_default.a", "lib/libiLBC.a", "lib/libiSAC.a", "lib/libiSACFix.a", "lib/libicudata.a", "lib/libicui18n.a", "lib/libicuuc.a", "lib/libisac_neon.a", "lib/libjingle_media.a", "lib/libjingle_p2p.a", "lib/libjingle_peerconnection.a", "lib/libjingle_peerconnection_objc.a", "lib/libjsoncpp.a", "lib/libmedia_file.a", "lib/libmetrics_default.a", "lib/libneteq.a", "lib/libnss_static.a", "lib/libopus.a", "lib/libpaced_sender.a", "lib/librbe_components.a", "lib/libremote_bitrate_estimator.a", "lib/librtc_base.a", "lib/librtc_base_approved.a", "lib/librtc_p2p.a", "lib/librtc_sound.a", "lib/librtc_xmllite.a", "lib/librtc_xmpp.a", "lib/librtp_rtcp.a", "lib/libsqlite_regexp.a", "lib/libsrtp.a", "lib/libsystem_wrappers.a", "lib/libusrsctplib.a", "lib/libvideo_capture_module.a", "lib/libvideo_capture_module_internal_impl.a", "lib/libvideo_coding_utility.a", "lib/libvideo_engine_core.a", "lib/libvideo_processing.a", "lib/libvideo_processing_sse2.a", "lib/libvideo_render_module.a", "lib/libvideo_render_module_internal_impl.a", "lib/libvoice_engine.a", "lib/libvpx.a", "lib/libvpx_asm_offsets_vp8.a", "lib/libvpx_asm_offsets_vpx_scale.a", "lib/libvpx_intrinsics_mmx.a", "lib/libvpx_intrinsics_sse2.a", "lib/libvpx_intrinsics_sse4_1.a", "lib/libvpx_intrinsics_ssse3.a", "lib/libwebrtc.a", "lib/libwebrtc_common.a", "lib/libwebrtc_i420.a", "lib/libwebrtc_opus.a", "lib/libwebrtc_utility.a", "lib/libwebrtc_video_coding.a", "lib/libwebrtc_vp8.a", "lib/libwebrtc_vp9.a", "lib/libyuv.a", "lib/libyuv_neon.a"
s.preserve_path = "lib/libWebRTC.a"
s.vendored_libraries = "lib/libWebRTC.a"

s.frameworks = "QuartzCore", "OpenGLES", "AudioToolbox", "AVFoundation", "CoreVideo", "Foundation", "UIKit", "CoreGraphics", "Security", "AssetsLibrary", "MobileCoreServices", "CoreLocation", "CoreMedia", "GLKit"
s.libraries = "sqlite3", "stdc++", "System", "util"
Expand Down
49 changes: 49 additions & 0 deletions include/RTCAVFoundationVideoSource.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* libjingle
* Copyright 2015 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* 3. The name of the author may not be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#import "RTCVideoSource.h"

@class AVCaptureSession;
@class RTCMediaConstraints;
@class RTCPeerConnectionFactory;

// RTCAVFoundationVideoSource is a video source that uses
// webrtc::AVFoundationVideoCapturer. We do not currently provide a wrapper for
// that capturer because cricket::VideoCapturer is not ref counted and we cannot
// guarantee its lifetime. Instead, we expose its properties through the ref
// counted video source interface.
@interface RTCAVFoundationVideoSource : RTCVideoSource

- (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
constraints:(RTCMediaConstraints*)constraints;

// Switches the camera being used (either front or back).
@property(nonatomic, assign) BOOL useBackCamera;
// Returns the active capture session.
@property(nonatomic, readonly) AVCaptureSession* captureSession;

@end
2 changes: 1 addition & 1 deletion include/RTCAudioSource.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCAudioTrack.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCDataChannel.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCEAGLVideoView.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCI420Frame.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCICECandidate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCICEServer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCMediaConstraints.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCMediaSource.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCMediaStream.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCMediaStreamTrack.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCNSGLVideoView.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCOpenGLVideoRenderer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCPair.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCPeerConnection.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCPeerConnectionDelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCPeerConnectionFactory.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCSessionDescription.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCSessionDescriptionDelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCStatsDelegate.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCStatsReport.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2014, Google Inc.
* Copyright 2014 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCTypes.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCVideoCapturer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCVideoRenderer.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
2 changes: 1 addition & 1 deletion include/RTCVideoSource.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down
10 changes: 9 additions & 1 deletion include/RTCVideoTrack.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* libjingle
* Copyright 2013, Google Inc.
* Copyright 2013 Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -28,10 +28,18 @@
#import "RTCMediaStreamTrack.h"

@protocol RTCVideoRenderer;
@class RTCPeerConnectionFactory;
@class RTCVideoSource;

// RTCVideoTrack is an ObjectiveC wrapper for VideoTrackInterface.
@interface RTCVideoTrack : RTCMediaStreamTrack

@property(nonatomic, readonly) RTCVideoSource* source;

- (instancetype)initWithFactory:(RTCPeerConnectionFactory*)factory
source:(RTCVideoSource*)source
trackId:(NSString*)trackId;

// Register a renderer that will render all frames received on this track.
- (void)addRenderer:(id<RTCVideoRenderer>)renderer;

Expand Down
Loading

0 comments on commit a423971

Please sign in to comment.