-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f2c2e9c
Showing
106 changed files
with
1,524 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 kapejod | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
webrtc-ios | ||
========== | ||
|
||
Static libraries (armv7, arm64, i386) and header files for WebRTC packaged as a cocoapod. | ||
|
||
Add one line to your Podfile | ||
``` | ||
pod 'WebRTC', :podspec => 'https://raw.githubusercontent.com/kapejod/webrtc-ios/masters/WebRTC.podspec' | ||
```` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Pod::Spec.new do |s| | ||
|
||
s.name = "WebRTC" | ||
s.version = "0.0.1" | ||
s.summary = "WebRTC static libraries and objc headers." | ||
|
||
s.description = <<-DESC | ||
A longer description of WebRTC in Markdown format. | ||
Bulding WebRTC for iOS and adding it to an xcode project is no fun. | ||
Just add this cocoa pod to your Podfile and be happy. :) | ||
DESC | ||
|
||
s.homepage = "https://www.ahoyconference.com" | ||
|
||
|
||
s.license = { :type => "MIT", :file => "LICENSE" } | ||
|
||
s.author = { "Klaus-Peter Junghanns" => "[email protected]" } | ||
s.social_media_url = "http://twitter.com/kapejod" | ||
|
||
s.platform = :ios | ||
|
||
s.source = { :git => "https://github.com/kapejod/webrtc-ios.git", :tag => "v0.0.1" } | ||
|
||
|
||
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.frameworks = "QuartzCore", "OpenGLES", "AudioToolbox", "AVFoundation", "CoreVideo", "Foundation", "UIKit", "CoreGraphics", "Security", "AssetsLibrary", "MobileCoreServices", "CoreLocation", "CoreMedia", "GLKit" | ||
s.libraries = "sqlite3", "stdc++", "System", "util" | ||
|
||
s.xcconfig = { 'HEADER_SEARCH_PATHS' => "${PODS_ROOT}/#{s.name}/include/**" } | ||
|
||
s.prepare_command = <<-CMD | ||
gzip -d ./lib/*.gz | ||
CMD | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* libjingle | ||
* 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: | ||
* | ||
* 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 "RTCMediaSource.h" | ||
|
||
// RTCAudioSource is an ObjectiveC wrapper for AudioSourceInterface. It is | ||
// used as the source for one or more RTCAudioTrack objects. | ||
@interface RTCAudioSource : RTCMediaSource | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
// Disallow init and don't add to documentation | ||
- (id)init __attribute__( | ||
(unavailable("init is not a supported initializer for this class."))); | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* libjingle | ||
* 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: | ||
* | ||
* 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 "RTCMediaStreamTrack.h" | ||
|
||
// RTCAudioTrack is an ObjectiveC wrapper for AudioTrackInterface. | ||
@interface RTCAudioTrack : RTCMediaStreamTrack | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
// Disallow init and don't add to documentation | ||
- (id)init __attribute__( | ||
(unavailable("init is not a supported initializer for this class."))); | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,112 @@ | ||
/* | ||
* libjingle | ||
* 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: | ||
* | ||
* 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 <Foundation/Foundation.h> | ||
|
||
// ObjectiveC wrapper for a DataChannelInit object. | ||
@interface RTCDataChannelInit : NSObject | ||
|
||
// Set to YES if ordered delivery is required | ||
@property(nonatomic) BOOL isOrdered; | ||
// Max period in milliseconds in which retransmissions will be sent. After this | ||
// time, no more retransmissions will be sent. -1 if unset. | ||
@property(nonatomic) NSInteger maxRetransmitTimeMs; | ||
// The max number of retransmissions. -1 if unset. | ||
@property(nonatomic) NSInteger maxRetransmits; | ||
// Set to YES if the channel has been externally negotiated and we do not send | ||
// an in-band signalling in the form of an "open" message | ||
@property(nonatomic) BOOL isNegotiated; | ||
// The stream id, or SID, for SCTP data channels. -1 if unset. | ||
@property(nonatomic) NSInteger streamId; | ||
// Set by the application and opaque to the WebRTC implementation. | ||
@property(nonatomic) NSString* protocol; | ||
|
||
@end | ||
|
||
// ObjectiveC wrapper for a DataBuffer object. | ||
@interface RTCDataBuffer : NSObject | ||
|
||
@property(nonatomic, readonly) NSData* data; | ||
@property(nonatomic, readonly) BOOL isBinary; | ||
|
||
- (instancetype)initWithData:(NSData*)data isBinary:(BOOL)isBinary; | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
// Disallow init and don't add to documentation | ||
- (id)init __attribute__(( | ||
unavailable("init is not a supported initializer for this class."))); | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
|
||
@end | ||
|
||
// Keep in sync with webrtc::DataChannelInterface::DataState | ||
typedef enum { | ||
kRTCDataChannelStateConnecting, | ||
kRTCDataChannelStateOpen, | ||
kRTCDataChannelStateClosing, | ||
kRTCDataChannelStateClosed | ||
} RTCDataChannelState; | ||
|
||
@class RTCDataChannel; | ||
// Protocol for receving data channel state and message events. | ||
@protocol RTCDataChannelDelegate<NSObject> | ||
|
||
// Called when the data channel state has changed. | ||
- (void)channelDidChangeState:(RTCDataChannel*)channel; | ||
|
||
// Called when a data buffer was successfully received. | ||
- (void)channel:(RTCDataChannel*)channel | ||
didReceiveMessageWithBuffer:(RTCDataBuffer*)buffer; | ||
|
||
@end | ||
|
||
// ObjectiveC wrapper for a DataChannel object. | ||
// See talk/app/webrtc/datachannelinterface.h | ||
@interface RTCDataChannel : NSObject | ||
|
||
@property(nonatomic, readonly) NSString* label; | ||
@property(nonatomic, readonly) BOOL isReliable; | ||
@property(nonatomic, readonly) BOOL isOrdered; | ||
@property(nonatomic, readonly) NSUInteger maxRetransmitTime; | ||
@property(nonatomic, readonly) NSUInteger maxRetransmits; | ||
@property(nonatomic, readonly) NSString* protocol; | ||
@property(nonatomic, readonly) BOOL isNegotiated; | ||
@property(nonatomic, readonly) NSInteger streamId; | ||
@property(nonatomic, readonly) RTCDataChannelState state; | ||
@property(nonatomic, readonly) NSUInteger bufferedAmount; | ||
@property(nonatomic, weak) id<RTCDataChannelDelegate> delegate; | ||
|
||
- (void)close; | ||
- (BOOL)sendData:(RTCDataBuffer*)data; | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
// Disallow init and don't add to documentation | ||
- (id)init __attribute__(( | ||
unavailable("init is not a supported initializer for this class."))); | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* libjingle | ||
* 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: | ||
* | ||
* 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 <Foundation/Foundation.h> | ||
#import <UIKit/UIKit.h> | ||
|
||
#import "RTCVideoRenderer.h" | ||
|
||
@class RTCEAGLVideoView; | ||
@protocol RTCEAGLVideoViewDelegate | ||
|
||
- (void)videoView:(RTCEAGLVideoView*)videoView didChangeVideoSize:(CGSize)size; | ||
|
||
@end | ||
|
||
// RTCEAGLVideoView is an RTCVideoRenderer which renders i420 frames in its | ||
// bounds using OpenGLES 2.0. | ||
@interface RTCEAGLVideoView : UIView <RTCVideoRenderer> | ||
|
||
@property(nonatomic, weak) id<RTCEAGLVideoViewDelegate> delegate; | ||
|
||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
/* | ||
* libjingle | ||
* 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: | ||
* | ||
* 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 <Foundation/Foundation.h> | ||
|
||
// RTCI420Frame is an ObjectiveC version of cricket::VideoFrame. | ||
@interface RTCI420Frame : NSObject | ||
|
||
@property(nonatomic, readonly) NSUInteger width; | ||
@property(nonatomic, readonly) NSUInteger height; | ||
@property(nonatomic, readonly) NSUInteger chromaWidth; | ||
@property(nonatomic, readonly) NSUInteger chromaHeight; | ||
@property(nonatomic, readonly) NSUInteger chromaSize; | ||
// These can return NULL if the object is not backed by a buffer. | ||
@property(nonatomic, readonly) const uint8_t* yPlane; | ||
@property(nonatomic, readonly) const uint8_t* uPlane; | ||
@property(nonatomic, readonly) const uint8_t* vPlane; | ||
@property(nonatomic, readonly) NSInteger yPitch; | ||
@property(nonatomic, readonly) NSInteger uPitch; | ||
@property(nonatomic, readonly) NSInteger vPitch; | ||
|
||
- (BOOL)makeExclusive; | ||
|
||
#ifndef DOXYGEN_SHOULD_SKIP_THIS | ||
// Disallow init and don't add to documentation | ||
- (id)init __attribute__(( | ||
unavailable("init is not a supported initializer for this class."))); | ||
#endif /* DOXYGEN_SHOULD_SKIP_THIS */ | ||
|
||
@end | ||
|
Oops, something went wrong.