ARDVideoCallView.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2015 The WebRTC Project Authors. All rights reserved.
  3. *
  4. * Use of this source code is governed by a BSD-style license
  5. * that can be found in the LICENSE file in the root of the source
  6. * tree. An additional intellectual property rights grant can be found
  7. * in the file PATENTS. All contributing project authors may
  8. * be found in the AUTHORS file in the root of the source tree.
  9. */
  10. #import <UIKit/UIKit.h>
  11. #import <WebRTC/RTCCameraPreviewView.h>
  12. #import <WebRTC/RTCVideoRenderer.h>
  13. #import "ARDStatsView.h"
  14. @class ARDVideoCallView;
  15. @protocol ARDVideoCallViewDelegate <NSObject>
  16. // Called when the camera switch button is pressed.
  17. - (void)videoCallViewDidSwitchCamera:(ARDVideoCallView *)view;
  18. // Called when the route change button is pressed.
  19. - (void)videoCallViewDidChangeRoute:(ARDVideoCallView *)view;
  20. // Called when the hangup button is pressed.
  21. - (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
  22. // Called when stats are enabled by triple tapping.
  23. - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
  24. @end
  25. // Video call view that shows local and remote video, provides a label to
  26. // display status, and also a hangup button.
  27. @interface ARDVideoCallView : UIView
  28. @property(nonatomic, readonly) UILabel *statusLabel;
  29. @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCCameraPreviewView) * localVideoView;
  30. @property(nonatomic, readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView;
  31. @property(nonatomic, readonly) ARDStatsView *statsView;
  32. @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
  33. @end