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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Conversation

sirknightj
Copy link
Contributor

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.

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!";
Copy link
Contributor

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
Copy link
Contributor

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);
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants