diff --git a/moonlight-common-c b/moonlight-common-c index 247b1fe..f596e80 160000 --- a/moonlight-common-c +++ b/moonlight-common-c @@ -1 +1 @@ -Subproject commit 247b1fe0e32d80ce02ede4c2b4a835b9c085abe4 +Subproject commit f596e805755cf0b83c14375bc5c9aa182b1766e0 diff --git a/static/js/messages.js b/static/js/messages.js index 07cb05f..1cbcc60 100644 --- a/static/js/messages.js +++ b/static/js/messages.js @@ -43,7 +43,12 @@ function handleMessage(msg) { // Show a termination snackbar message if the termination was unexpected var errorCode = parseInt(msg.data.replace('streamTerminated: ', '')); if (errorCode !== 0) { - snackbarLogLong("Connection terminated"); + if (errorCode === -100) { // ML_ERROR_NO_VIDEO_TRAFFIC + snackbarLogLong("No video received from host. Check the host PC's firewall and port forwarding rules."); + } + else { + snackbarLogLong("Connection terminated"); + } } api.refreshServerInfo().then(function(ret) {