-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JoinStorageSession retries #94
base: master
Are you sure you want to change the base?
Conversation
final SparseBooleanArray checked = mFragment.get().mOptions.getCheckedItemPositions(); | ||
for (int i = 0; i < mFragment.get().mOptions.getCount(); i++) { | ||
if (!checked.get(i)) { | ||
return "Audio and video must be sent to ingest media!"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw exception?
protocols = new String[]{"WSS", "HTTPS", "WEBRTC"}; | ||
} else { | ||
if (mFragment.get().mStreamArn == null) { | ||
// Regular WebRTC |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WebRTC P2P without Ingestion
Log.d(TAG, "Connecting to URI " + uri + " as master"); | ||
websocketClient = new WebSocketClient(uri, new ClientManager(), signalingListener, executorService); | ||
websocketClient = new WebSocketClient(uri, new ClientManager(), signalingListener, executorService, pingIntervalSeconds); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably a note for keepalive for websocket to continue to offer after x minutes?
@@ -99,6 +106,38 @@ public void onError(final Session session, final Throwable thr) { | |||
}); | |||
|
|||
await().atMost(10, TimeUnit.SECONDS).until(WebSocketClient.this::isOpen); | |||
|
|||
if (pingIntervalSeconds > 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice!
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.