ARDVideoCallView.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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)videoCallView:(ARDVideoCallView *)view
  18. shouldSwitchCameraWithCompletion:(void (^)(NSError *))completion;
  19. // Called when the route change button is pressed.
  20. - (void)videoCallView:(ARDVideoCallView *)view
  21. shouldChangeRouteWithCompletion:(void (^)(void))completion;
  22. // Called when the hangup button is pressed.
  23. - (void)videoCallViewDidHangup:(ARDVideoCallView *)view;
  24. // Called when stats are enabled by triple tapping.
  25. - (void)videoCallViewDidEnableStats:(ARDVideoCallView *)view;
  26. @end
  27. // Video call view that shows local and remote video, provides a label to
  28. // display status, and also a hangup button.
  29. @interface ARDVideoCallView : UIView
  30. @property(nonatomic, readonly) UILabel *statusLabel;
  31. @property(nonatomic, readonly) RTC_OBJC_TYPE(RTCCameraPreviewView) * localVideoView;
  32. @property(nonatomic, readonly) __kindof UIView<RTC_OBJC_TYPE(RTCVideoRenderer)> *remoteVideoView;
  33. @property(nonatomic, readonly) ARDStatsView *statsView;
  34. @property(nonatomic, weak) id<ARDVideoCallViewDelegate> delegate;
  35. @end