Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
8c6dc22
update reconneciton mechanism
USAMAWIZARD Sep 12, 2025
7e88f5f
update reconneciton mechanism
USAMAWIZARD Sep 12, 2025
b510e8d
update reconneciton mechanism
USAMAWIZARD Sep 15, 2025
e568eae
update reconneciton mechanism
USAMAWIZARD Sep 15, 2025
d626beb
Merge branch 'master' into improveReconnection
USAMAWIZARD Sep 22, 2025
697d12e
fix merge conflit
USAMAWIZARD Sep 22, 2025
46824ed
update min sdk version
USAMAWIZARD Sep 22, 2025
bf8bdcd
imporove reconnection
USAMAWIZARD Sep 24, 2025
9196711
imporove reconnection
USAMAWIZARD Sep 24, 2025
ebe375f
imporove reconnection
USAMAWIZARD Sep 24, 2025
ba1f5f0
imporove reconnection
USAMAWIZARD Sep 24, 2025
5c069be
imporove reconnection
USAMAWIZARD Sep 24, 2025
d8524a1
imporove reconnection
USAMAWIZARD Sep 24, 2025
46c3d33
imporove reconnection
USAMAWIZARD Sep 24, 2025
5db2007
imporove reconnection
USAMAWIZARD Sep 26, 2025
99142a3
imporove reconnection
USAMAWIZARD Sep 26, 2025
f76a198
imporove reconnection
USAMAWIZARD Oct 1, 2025
ae34ba5
Update gradle.yml
USAMAWIZARD Oct 2, 2025
77ccde3
Update gradle.yml
USAMAWIZARD Oct 2, 2025
f42b287
Update gradle.yml
USAMAWIZARD Oct 2, 2025
b5e1ed0
improve reconnection
USAMAWIZARD Oct 2, 2025
8d557f6
Merge branch 'improveReconnection' of https://github.com/ant-media/We…
USAMAWIZARD Oct 2, 2025
58b019a
imporove reconnection
USAMAWIZARD Oct 7, 2025
92b59e5
imporove reconnection
USAMAWIZARD Oct 8, 2025
e8e137b
imporove reconnection
USAMAWIZARD Oct 8, 2025
2fbe969
imporove reconnection
USAMAWIZARD Oct 8, 2025
d33419c
imporove reconnection
USAMAWIZARD Oct 8, 2025
759a378
imporove reconnection
USAMAWIZARD Oct 8, 2025
cec428a
imporove reconnection
USAMAWIZARD Oct 8, 2025
fec6891
locks for release
USAMAWIZARD Nov 10, 2025
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
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ jobs:
touch emulator.log
chmod 777 emulator.log
adb logcat io.antmedia:I >> emulator.log &
./gradlew jacocoTestReport; EXIT_CODE=$?; exit $EXIT_CODE
./gradlew jacocoTestReport;

- name: Archive Test Report
if: always()
Expand Down Expand Up @@ -234,6 +234,7 @@ jobs:
runs-on: ubuntu-latest
if: always()
steps:

- name: Checkout repository
uses: actions/checkout@v2
- name: Delete runner
Expand Down
3 changes: 2 additions & 1 deletion webrtc-android-framework/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
compileSdkVersion 34

defaultConfig {
minSdkVersion 21
minSdkVersion 24
targetSdkVersion 34

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -74,6 +74,7 @@ task jacocoTestReport(type: JacocoReport, dependsOn: ['testDebugUnitTest','creat

dependencies {
api fileTree(include: ['*.jar'], dir: 'libs')
implementation("com.squareup.okhttp3:okhttp:4.12.0")
implementation 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'androidx.annotation:annotation:1.5.0'
testImplementation 'junit:junit:4.13.2'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import org.webrtc.VideoTrack;

import io.antmedia.webrtcandroidframework.core.WebRTCClient;
import io.antmedia.webrtcandroidframework.websocket.Broadcast;

/**
Expand Down Expand Up @@ -84,8 +85,8 @@ public void onPlayFinished(String streamId) {
}

@Override
public void onReconnectionAttempt(String streamId) {
super.onReconnectionAttempt(streamId);
public void onReconnectionAttempt(String streamId, WebRTCClient.Mode mode) {
super.onReconnectionAttempt(streamId, mode);
if(streamId.equals(this.streamId)) {
publishReconnecting = true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

import java.util.ArrayList;

import de.tavendo.autobahn.WebSocket;
import io.antmedia.webrtcandroidframework.core.StreamInfo;
import io.antmedia.webrtcandroidframework.core.WebRTCClient;
import io.antmedia.webrtcandroidframework.websocket.Broadcast;
import io.antmedia.webrtcandroidframework.websocket.Subscriber;

Expand Down Expand Up @@ -78,11 +78,6 @@ public void onError(String description, String streamId) {
callbackCalled(messageText);
}

@Override
public void onSignalChannelClosed(WebSocket.WebSocketConnectionObserver.WebSocketCloseNotification code, String streamId) {
String messageText = "Signal channel closed for " + streamId + " : " + code;
callbackCalled(messageText);
}

@Override
public void streamIdInUse(String streamId) {
Expand Down Expand Up @@ -158,7 +153,7 @@ public void onVideoTrackEnded(VideoTrack track) {
}

@Override
public void onReconnectionAttempt(String streamId) {
public void onReconnectionAttempt(String streamId, WebRTCClient.Mode mode) {
String messageText = "Reconnection attempt for " + streamId;
callbackCalled(messageText);
}
Expand Down Expand Up @@ -280,7 +275,7 @@ public void onShutdown(){
protected void callbackCalled(String messageText) {
Log.d(DefaultWebRTCListener.class.getName(), messageText);
}

@Override
public void onSubscriberCount(String streamId, int count) {
String messageText = "On Subscriber Count "+streamId;
Expand All @@ -293,4 +288,7 @@ public void onSubscriberList(String streamId, Subscriber[] subscribers) {
callbackCalled(messageText);
}

}

}


Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ void publish(String streamId, String token, boolean videoCallEnabled, boolean au
*/
boolean isReconnectionInProgress();

boolean isPlayConnected();

boolean isPlayReconnecting();

boolean isPublishReconnecting();

/**
* Get the error
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

import java.util.ArrayList;

import de.tavendo.autobahn.WebSocket;
import io.antmedia.webrtcandroidframework.core.StreamInfo;
import io.antmedia.webrtcandroidframework.core.WebRTCClient;
import io.antmedia.webrtcandroidframework.websocket.Broadcast;
import io.antmedia.webrtcandroidframework.websocket.Subscriber;

Expand Down Expand Up @@ -61,8 +61,6 @@ public interface IWebRTCListener {

void onError(String description, String streamId);

void onSignalChannelClosed(WebSocket.WebSocketConnectionObserver.WebSocketCloseNotification code, String streamId);

/**
* It's called if client tried to stream with a stream id that is currently used in another stream.
*
Expand Down Expand Up @@ -138,7 +136,7 @@ public interface IWebRTCListener {
* @param streamId
* It's called when reconnection attempt is started
*/
void onReconnectionAttempt(String streamId);
void onReconnectionAttempt(String streamId, WebRTCClient.Mode ClientType);

/**
* It's called when joiened the room
Expand Down Expand Up @@ -264,3 +262,4 @@ public interface IWebRTCListener {
*/
void onSubscriberList(String streamId, Subscriber[] subscribers);
}

Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
public class DataChannelConstants {

public static final String VIDEO_TRACK_ASSIGNMENT_LIST = "VIDEO_TRACK_ASSIGNMENT_LIST";
public static final String TRACK_LIST_UPDATED = "TRACK_LIST_UPDATED";
public static final String PAYLOAD = "payload";
public static final String TRACK_ID = "trackId";
public static final String VIDEO_LABEL = "videoLabel";
Expand Down
Loading
Loading