Skip to content
Open
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
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