Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flip Local View Camera #32

Open
royherma opened this issue Apr 21, 2016 · 5 comments
Open

Flip Local View Camera #32

royherma opened this issue Apr 21, 2016 · 5 comments

Comments

@royherma
Copy link

Hi, how would i go about flipping/alternating between the front and rear facing camera on the local user when capturing video?

Thanks!

@coolwr
Copy link
Contributor

coolwr commented Apr 21, 2016

In the ARDAppClient there are 2 methods swapCameraToFront and swapCameraToBack methods.

In the sample app demo ARTCVideoChatViewController you could call [self.client swapCameraToFront] and [self.client swapCameraToBack].

@royherma
Copy link
Author

I don't have those methods...and I am using the most recent version from the pod.These are the only methods exposed in the ARDAppClient header:

@interface ARDAppClient : NSObject

@property(nonatomic, readonly) ARDAppClientState state;
@property(nonatomic, weak) id<ARDAppClientDelegate> delegate;
@property(nonatomic, strong) NSString *serverHostUrl;

- (instancetype)initWithDelegate:(id<ARDAppClientDelegate>)delegate;

// Establishes a connection with the AppRTC servers for the given room id.
// TODO(tkchin): provide available keys/values for options. This will be used
// for call configurations such as overriding server choice, specifying codecs
// and so on.
- (void)connectToRoomWithId:(NSString *)roomId
                    options:(NSDictionary *)options;

// Disconnects from the AppRTC servers and any connected clients.
- (void)disconnect;

@coolwr
Copy link
Contributor

coolwr commented Apr 22, 2016

@royherma
Copy link
Author

I saw this from a past project, but any idea why its not the version being pulled from pod 'AppRTC' ? I'll try to see if i can specifically pull that version (if its available). How did you install it on your project, or did you just use the demo project?

@royherma
Copy link
Author

weird..both of my projects (one with the more robust ARDAppClient and one without) seem to have version 1.0.2 of AppRTC. Any ideas? What happens if you create a new project and do pod 'AppRTC', do you see those methods in the file? @coolwr

Btw - thanks for the help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants