forked from callstack/react-native-opentok
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CT-1345: Added properties for resolve/reject CT-1345: Network test working CT-1345: copied over correct files
- Loading branch information
1 parent
e4e5652
commit 1927488
Showing
9 changed files
with
1,777 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { NativeModules, NativeAppEventEmitter, Platform } from 'react-native'; | ||
const NetworkTest = NativeModules.OpenTokNetworkTest; | ||
|
||
export const testConnection = NetworkTest.testConnection; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// | ||
// OTAudioDeviceIOSDefault.h | ||
// | ||
// Copyright (c) 2014 TokBox, Inc. All rights reserved. | ||
// | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <OpenTok/OpenTok.h> | ||
|
||
#define kMixerInputBusCount 2 | ||
#define kOutputBus 0 | ||
#define kInputBus 1 | ||
|
||
#define AUDIO_DEVICE_HEADSET @"AudioSessionManagerDevice_Headset" | ||
#define AUDIO_DEVICE_BLUETOOTH @"AudioSessionManagerDevice_Bluetooth" | ||
#define AUDIO_DEVICE_SPEAKER @"AudioSessionManagerDevice_Speaker" | ||
|
||
@interface OTDefaultAudioDevice : NSObject <OTAudioDevice> | ||
{ | ||
AudioStreamBasicDescription stream_format; | ||
} | ||
|
||
/** | ||
* Audio device lifecycle should live for the duration of the process, and | ||
* needs to be set before OTSession is initialized. | ||
* | ||
* It is not recommended to initialize unique audio device instances. | ||
*/ | ||
+ (instancetype)sharedInstance; | ||
|
||
/** | ||
* Override the audio unit preferred component subtype. This can be used to | ||
* force RemoteIO to be used instead of VPIO (the default). It is recommended | ||
* to set this prior to instantiating any publisher/subscriber; changes will | ||
* not take effect until after the next audio unit setup call. | ||
*/ | ||
@property (nonatomic) uint32_t preferredAudioComponentSubtype; | ||
|
||
@end |
Oops, something went wrong.