| Index: talk/app/webrtc/objc/h264decoderfactory.cc
|
| diff --git a/talk/examples/objc/AppRTCDemo/ios/ARDMainView.h b/talk/app/webrtc/objc/h264decoderfactory.cc
|
| similarity index 77%
|
| copy from talk/examples/objc/AppRTCDemo/ios/ARDMainView.h
|
| copy to talk/app/webrtc/objc/h264decoderfactory.cc
|
| index 9d9f5ebcf011500c71bf09ba0405b465ccccc583..45987612b12ed244b6d6921f09da16d362c588d9 100644
|
| --- a/talk/examples/objc/AppRTCDemo/ios/ARDMainView.h
|
| +++ b/talk/app/webrtc/objc/h264decoderfactory.cc
|
| @@ -25,20 +25,21 @@
|
| * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#import <UIKit/UIKit.h>
|
| +#include "talk/app/webrtc/objc/h264decoderfactory.h"
|
|
|
| -@class ARDMainView;
|
| +#include "webrtc/modules/video_coding/codecs/h264/include/h264.h"
|
|
|
| -@protocol ARDMainViewDelegate <NSObject>
|
| +namespace webrtc {
|
|
|
| -- (void)mainView:(ARDMainView *)mainView didInputRoom:(NSString *)room;
|
| +VideoDecoder* H264DecoderFactory::CreateVideoDecoder(VideoCodecType type) {
|
| + if (type == kVideoCodecH264) {
|
| + return H264Decoder::Create();
|
| + }
|
| + return nullptr;
|
| +}
|
|
|
| -@end
|
| +void H264DecoderFactory::DestroyVideoDecoder(VideoDecoder* decoder) {
|
| + delete decoder;
|
| +}
|
|
|
| -// The main view of AppRTCDemo. It contains an input field for entering a room
|
| -// name on apprtc to connect to.
|
| -@interface ARDMainView : UIView
|
| -
|
| -@property(nonatomic, weak) id<ARDMainViewDelegate> delegate;
|
| -
|
| -@end
|
| +} // namespace webrtc
|
|
|