Add warning if no key frames can be received in 10 seconds

This commit is contained in:
Cameron Gutman 2020-08-29 21:27:44 -07:00
parent c5d58e1aab
commit 1aae65575c
4 changed files with 7 additions and 1 deletions

View File

@ -1596,6 +1596,10 @@ public class Game extends Activity implements SurfaceHolder.Callback,
message = getResources().getString(R.string.no_video_received_error);
break;
case MoonBridge.ML_ERROR_NO_VIDEO_FRAME:
message = getResources().getString(R.string.no_frame_received_error);
break;
default:
message = getResources().getString(R.string.conn_terminated_msg);
break;

View File

@ -35,6 +35,7 @@ public class MoonBridge {
public static final int ML_ERROR_GRACEFUL_TERMINATION = 0;
public static final int ML_ERROR_NO_VIDEO_TRAFFIC = -100;
public static final int ML_ERROR_NO_VIDEO_FRAME = -101;
public static final int ML_PORT_INDEX_TCP_47984 = 0;
public static final int ML_PORT_INDEX_TCP_47989 = 1;

@ -1 +1 @@
Subproject commit f2c1d03d8e268375de00352a1228a5669b016b61
Subproject commit 9e4651e460a92168ffa86f54be9a5033c6e9064c

View File

@ -73,6 +73,7 @@
<string name="unable_to_pin_shortcut">Your current launcher does not allow for creating pinned shortcuts.</string>
<string name="video_decoder_init_failed">Video decoder failed to initialize. Your device may not support the selected resolution or frame rate.</string>
<string name="no_video_received_error">No video received from host. Check the host PC\'s firewall and port forwarding rules.</string>
<string name="no_frame_received_error">Your network connection isn\'t performing well. Reduce your video bitrate setting or try a faster connection.</string>
<!-- Start application messages -->
<string name="conn_establishing_title">Establishing Connection</string>