Skip to content
This repository was archived by the owner on Jun 15, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion AVPlayerExample/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ - (void)startPreview {
self.camera = [[TVICameraSource alloc] initWithDelegate:self];
self.localVideoTrack = [TVILocalVideoTrack trackWithSource:self.camera
enabled:YES
name:@"Cameara"];
name:@"Camera"];
// Add renderer to video track for local preview
[self.localVideoTrack addRenderer:self.previewView];
[self logMessage:@"Video track created"];
Expand Down Expand Up @@ -410,6 +410,15 @@ - (void)room:(TVIRoom *)room didFailToConnectWithError:(nonnull NSError *)error{
[self showInterfaceState:ViewControllerStateLobby];
}

- (void)room:(TVIRoom *)room isReconnectingWithError:(NSError *)error {
NSString *message = [NSString stringWithFormat:@"Reconnecting due to %@", error.localizedDescription];
[self logMessage:message];
}

- (void)didReconnectToRoom:(TVIRoom *)room {
[self logMessage:@"Reconnected to room"];
}

- (void)room:(TVIRoom *)room participantDidConnect:(TVIRemoteParticipant *)participant {
if (!self.remoteParticipant) {
self.remoteParticipant = participant;
Expand Down
11 changes: 10 additions & 1 deletion ObjCVideoQuickstart/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ - (void)startPreview {
self.camera = [[TVICameraSource alloc] initWithDelegate:self];
self.localVideoTrack = [TVILocalVideoTrack trackWithSource:self.camera
enabled:YES
name:@"Cameara"];
name:@"Camera"];
// Add renderer to video track for local preview
[self.localVideoTrack addRenderer:self.previewView];
[self logMessage:@"Video track created"];
Expand Down Expand Up @@ -336,6 +336,15 @@ - (void)room:(TVIRoom *)room didFailToConnectWithError:(nonnull NSError *)error{
[self showRoomUI:NO];
}

- (void)room:(TVIRoom *)room isReconnectingWithError:(NSError *)error {
NSString *message = [NSString stringWithFormat:@"Reconnecting due to %@", error.localizedDescription];
[self logMessage:message];
}

- (void)didReconnectToRoom:(TVIRoom *)room {
[self logMessage:@"Reconnected to room"];
}

- (void)room:(TVIRoom *)room participantDidConnect:(TVIRemoteParticipant *)participant {
if (!self.remoteParticipant) {
self.remoteParticipant = participant;
Expand Down
2 changes: 1 addition & 1 deletion Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ workspace 'VideoQuickStart'
platform :ios, '9.0'

abstract_target 'TwilioVideo' do
pod 'TwilioVideo', '~> 2.6'
pod 'TwilioVideo', '~> 2.7'

target 'ObjCVideoQuickstart' do
project 'ObjCVideoQuickstart.xcproject'
Expand Down