Skip to content

Commit e6b43b1

Browse files
authored
Enable background modes of projects for the property Audio,AirPlay,PIP (#205)
An offshoot of the issue - opentok/opentok-ios-sdk-samples-swift#75 Many users miss this step and they panic and have to ping Customer Support, learn about it, make the change and waste valuable time. Did the same for Swift projects too opentok/opentok-ios-sdk-samples-swift#112 Co-authored-by: Jaideep <[email protected]>
1 parent 5e4bd0d commit e6b43b1

File tree

29 files changed

+143
-0
lines changed

29 files changed

+143
-0
lines changed

Archiving/Archiving.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@
186186
developmentRegion = English;
187187
hasScannedForEncodings = 0;
188188
knownRegions = (
189+
English,
189190
en,
190191
Base,
191192
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Archiving/Archiving/Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
<string>This app accesses the camera for video communications.</string>
3434
<key>NSMicrophoneUsageDescription</key>
3535
<string>This app accesses the microphone for audio communications.</string>
36+
<key>UIBackgroundModes</key>
37+
<array>
38+
<string>audio</string>
39+
</array>
3640
<key>UILaunchStoryboardName</key>
3741
<string>LaunchScreen</string>
3842
<key>UIMainStoryboardFile</key>

Audio-Levels/Audio-Levels.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@
240240
developmentRegion = English;
241241
hasScannedForEncodings = 0;
242242
knownRegions = (
243+
English,
243244
en,
244245
Base,
245246
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Audio-Levels/Audio-Levels/Audio-Levels-Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UIMainStoryboardFile</key>
3236
<string>Main</string>
3337
<key>UIRequiredDeviceCapabilities</key>

Basic-Video-Chat/Basic-Video-Chat.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
developmentRegion = English;
130130
hasScannedForEncodings = 0;
131131
knownRegions = (
132+
English,
132133
en,
133134
Base,
134135
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Basic-Video-Chat/Basic-Video-Chat/Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UIMainStoryboardFile</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile~ipad</key>

Broadcast-Ext/Broadcast-Ext/Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UIMainStoryboardFile</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile~ipad</key>

Custom-Audio-Driver/Custom-Audio-Driver.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@
175175
developmentRegion = English;
176176
hasScannedForEncodings = 0;
177177
knownRegions = (
178+
English,
178179
en,
179180
Base,
180181
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Custom-Audio-Driver/External-Audio-Device/Custom-Audio-Driver-Info.plist

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
<string>Opentok needs access to the microphone to stream your audio</string>
3131
<key>UIBackgroundModes</key>
3232
<array>
33+
<string>audio</string>
3334
<string>voip</string>
3435
</array>
3536
<key>UILaunchStoryboardName</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Custom-Video-Driver/Lets-Build-OTPublisher/Custom-Video-Driver-Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UIMainStoryboardFile</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile~ipad</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

FrameMetadata/FrameMetadata/FrameMetadata.plist

+4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
<string>Location is required to find out where you are.</string>
3131
<key>NSMicrophoneUsageDescription</key>
3232
<string>Opentok needs access to the microphone to stream your audio</string>
33+
<key>UIBackgroundModes</key>
34+
<array>
35+
<string>audio</string>
36+
</array>
3337
<key>UILaunchStoryboardName</key>
3438
<string>Main_iPhone</string>
3539
<key>UIMainStoryboardFile</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Live-Photo-Capture/Live-Photo-Capture/Live-Photo-Capture-Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UILaunchStoryboardName</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Overlay-Graphics/Overlay-Graphics/Overlay-Graphics-Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UILaunchStoryboardName</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Screen-Sharing/Screen-Sharing.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@
164164
developmentRegion = English;
165165
hasScannedForEncodings = 0;
166166
knownRegions = (
167+
English,
167168
en,
168169
Base,
169170
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Screen-Sharing/Screen-Sharing/Screen-Sharing-Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>Opentok needs access to the camera to stream your video</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>Opentok needs access to the microphone to stream your audio</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UIMainStoryboardFile</key>
3236
<string>Main_iPhone</string>
3337
<key>UIMainStoryboardFile~ipad</key>

Signaling/Signaling.xcodeproj/project.pbxproj

+1
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@
205205
developmentRegion = English;
206206
hasScannedForEncodings = 0;
207207
knownRegions = (
208+
English,
208209
en,
209210
Base,
210211
);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

Signaling/Signaling/Info.plist

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828
<string>This app accesses the camera for video communications.</string>
2929
<key>NSMicrophoneUsageDescription</key>
3030
<string>This app accesses the microphone for audio communications.</string>
31+
<key>UIBackgroundModes</key>
32+
<array>
33+
<string>audio</string>
34+
</array>
3135
<key>UILaunchStoryboardName</key>
3236
<string>LaunchScreen</string>
3337
<key>UIMainStoryboardFile</key>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)