mirror of
https://github.com/moonlight-stream/moonlight-chrome.git
synced 2026-06-19 15:21:06 +00:00
Add a friendly error message when no video traffic is received
This commit is contained in:
+1
-1
Submodule moonlight-common-c updated: 247b1fe0e3...f596e80575
@@ -43,7 +43,12 @@ function handleMessage(msg) {
|
|||||||
// Show a termination snackbar message if the termination was unexpected
|
// Show a termination snackbar message if the termination was unexpected
|
||||||
var errorCode = parseInt(msg.data.replace('streamTerminated: ', ''));
|
var errorCode = parseInt(msg.data.replace('streamTerminated: ', ''));
|
||||||
if (errorCode !== 0) {
|
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) {
|
api.refreshServerInfo().then(function(ret) {
|
||||||
|
|||||||
Reference in New Issue
Block a user