Skip to content

Commit 185a6e8

Browse files
authored
Merge pull request #124 from AgoraIO/dev/ios
1. remove rtmp injection in all platforms
2 parents cfb8c79 + 862a770 commit 185a6e8

77 files changed

Lines changed: 161 additions & 2067 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Android/APIExample/app/src/main/java/io/agora/api/example/ExampleActivity.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
import io.agora.api.example.examples.advanced.SetAudioProfile;
3535
import io.agora.api.example.examples.advanced.MultiProcess;
3636
import io.agora.api.example.examples.advanced.VideoQuickSwitch;
37-
import io.agora.api.example.examples.advanced.RTMPInjection;
3837
import io.agora.api.example.examples.advanced.RTMPStreaming;
3938
import io.agora.api.example.examples.advanced.StreamEncrypt;
4039
import io.agora.api.example.examples.advanced.SwitchCameraScreenShare;
@@ -112,9 +111,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) {
112111
case R.id.action_mainFragment_to_GeoFencing:
113112
fragment = new GeoFencing();
114113
break;
115-
case R.id.action_mainFragment_to_RTMPInjection:
116-
fragment = new RTMPInjection();
117-
break;
118114
case R.id.action_mainFragment_to_RTMPStreaming:
119115
fragment = new RTMPStreaming();
120116
break;

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ARCore.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -375,15 +375,6 @@ public void onError(int err)
375375
{
376376
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
377377
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
378-
/** Upload current log file immediately to server.
379-
* only use this when an error occurs
380-
* block before log file upload success or timeout.
381-
*
382-
* @return
383-
* - 0: Success.
384-
* - < 0: Failure.
385-
*/
386-
engine.uploadLogFile();
387378
}
388379

389380
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/AdjustVolume.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -276,15 +276,6 @@ public void onWarning(int warn) {
276276
public void onError(int err) {
277277
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
278278
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
279-
/** Upload current log file immediately to server.
280-
* only use this when an error occurs
281-
* block before log file upload success or timeout.
282-
*
283-
* @return
284-
* - 0: Success.
285-
* - < 0: Failure.
286-
*/
287-
engine.uploadLogFile();
288279
}
289280

290281
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/ChannelEncryption.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,6 @@ public void onError(int err)
275275
{
276276
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
277277
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
278-
/** Upload current log file immediately to server.
279-
* only use this when an error occurs
280-
* block before log file upload success or timeout.
281-
*
282-
* @return
283-
* - 0: Success.
284-
* - < 0: Failure.
285-
*/
286-
engine.uploadLogFile();
287278
}
288279

289280
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/CustomRemoteVideoRender.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,6 @@ public void onWarning(int warn) {
242242
public void onError(int err) {
243243
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
244244
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
245-
/** Upload current log file immediately to server.
246-
* only use this when an error occurs
247-
* block before log file upload success or timeout.
248-
*
249-
* @return
250-
* - 0: Success.
251-
* - < 0: Failure.
252-
*/
253-
engine.uploadLogFile();
254245
}
255246

256247
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/GeoFencing.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -278,15 +278,6 @@ public void onError(int err) {
278278
handler.post(() -> join.setEnabled(true));
279279
} else
280280
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
281-
/** Upload current log file immediately to server.
282-
* only use this when an error occurs
283-
* block before log file upload success or timeout.
284-
*
285-
* @return
286-
* - 0: Success.
287-
* - < 0: Failure.
288-
*/
289-
engine.uploadLogFile();
290281
}
291282

292283
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/HostAcrossChannel.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,15 +297,6 @@ public void onError(int err)
297297
{
298298
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
299299
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
300-
/** Upload current log file immediately to server.
301-
* only use this when an error occurs
302-
* block before log file upload success or timeout.
303-
*
304-
* @return
305-
* - 0: Success.
306-
* - < 0: Failure.
307-
*/
308-
engine.uploadLogFile();
309300
}
310301

311302
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/InCallReport.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,6 @@ public void onError(int err)
275275
{
276276
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
277277
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
278-
/** Upload current log file immediately to server.
279-
* only use this when an error occurs
280-
* block before log file upload success or timeout.
281-
*
282-
* @return
283-
* - 0: Success.
284-
* - < 0: Failure.
285-
*/
286-
engine.uploadLogFile();
287278
}
288279

289280
/**Occurs when a user leaves the channel.

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/JoinMultipleChannel.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -343,15 +343,6 @@ public void onWarning(int warn) {
343343
public void onError(int err) {
344344
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
345345
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
346-
/** Upload current log file immediately to server.
347-
* only use this when an error occurs
348-
* block before log file upload success or timeout.
349-
*
350-
* @return
351-
* - 0: Success.
352-
* - < 0: Failure.
353-
*/
354-
engine.uploadLogFile();
355346
}
356347

357348
/**

Android/APIExample/app/src/main/java/io/agora/api/example/examples/advanced/LiveStreaming.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -299,15 +299,6 @@ public void onWarning(int warn) {
299299
public void onError(int err) {
300300
Log.e(TAG, String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
301301
showAlert(String.format("onError code %d message %s", err, RtcEngine.getErrorDescription(err)));
302-
/** Upload current log file immediately to server.
303-
* only use this when an error occurs
304-
* block before log file upload success or timeout.
305-
*
306-
* @return
307-
* - 0: Success.
308-
* - < 0: Failure.
309-
*/
310-
engine.uploadLogFile();
311302
}
312303

313304
/**Occurs when a user leaves the channel.

0 commit comments

Comments
 (0)