From 2e5fd5faaabf20d1722992cff2c21e6a98a830ed Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 23 Sep 2025 15:01:46 +0200 Subject: [PATCH 1/6] add mse not supported warning --- tools/wave/www/index.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index e727b9ae40..c6ba389a06 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -34,6 +34,7 @@

New test session

+

expiaryDateElement.innerText = config.expirationDate.toLocaleString(); }); + var mseWarningElement = document.getElementById("mse-warning"); + + if ('MediaSource' in window) { + console.log('MSE is supported'); + mseWarningElement.innerText = 'MSE is supported'; + } else { + console.log('MSE is not supported'); + mseWarningElement.innerText = 'Warning: MSE API is not supported'; + } + var configurationUrl = location.origin + WEB_ROOT + From 1b967dc0b5f6ebede268e186e8af888d6bfd7d2d Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 21 Oct 2025 12:48:51 +0200 Subject: [PATCH 2/6] update mse not supported warning --- tools/wave/www/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index c6ba389a06..914f78574b 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -239,7 +239,15 @@

var mseWarningElement = document.getElementById("mse-warning"); + var mse = false; + if ('MediaSource' in window) { + mse = true; + } else { + mse = false; + } + + if (mse == true) { console.log('MSE is supported'); mseWarningElement.innerText = 'MSE is supported'; } else { From 6a6541ae132b43413f948ca5e6b22081e9aa7f9f Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 21 Oct 2025 13:59:01 +0200 Subject: [PATCH 3/6] update mse not supported warning --- tools/wave/www/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index 914f78574b..f81aaddf55 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -34,7 +34,7 @@

New test session

-

+

Checking MSE support

}); var mseWarningElement = document.getElementById("mse-warning"); - + var mse = false; if ('MediaSource' in window) { From edf0aa345ce0bb8af9e0f5e5d8de4867d25f48bf Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 21 Oct 2025 14:41:57 +0200 Subject: [PATCH 4/6] update mse not supported warning --- tools/wave/www/index.html | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index f81aaddf55..33abe35ff7 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -10,6 +10,7 @@ + @@ -31,10 +32,10 @@

+

New test session

-

Checking MSE support

addClass(tabbables[selectedTabbable], "focused"); } + function createErrorMessage() { + return { + element: "article", + className: "message is-warning", + children: [ + { + className: "message-body", + text: 'Warning: MSE API is not supported', + }, + ], + }; + } + function focusNext() { skipFocus(1); } @@ -237,22 +251,13 @@

expiaryDateElement.innerText = config.expirationDate.toLocaleString(); }); - var mseWarningElement = document.getElementById("mse-warning"); + var mseWarningElement = UI.getElement("mse-warning"); + if (!mseWarningElement) return; + mseWarningElement.innerHTML = ""; - var mse = false; - - if ('MediaSource' in window) { - mse = true; - } else { - mse = false; - } - - if (mse == true) { - console.log('MSE is supported'); - mseWarningElement.innerText = 'MSE is supported'; - } else { - console.log('MSE is not supported'); - mseWarningElement.innerText = 'Warning: MSE API is not supported'; + if (!'MediaSource' in window) { + var error = createErrorMessage(); + mseWarningElement.appendChild(UI.createElement(error)); } var configurationUrl = From 9d2840766c3198fc16de2f76ba1d88d21106e350 Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 21 Oct 2025 14:52:36 +0200 Subject: [PATCH 5/6] update mse not supported warning --- tools/wave/www/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index 33abe35ff7..499191d66c 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -255,7 +255,7 @@

if (!mseWarningElement) return; mseWarningElement.innerHTML = ""; - if (!'MediaSource' in window) { + if (!('MediaSource' in window)) { var error = createErrorMessage(); mseWarningElement.appendChild(UI.createElement(error)); } From 2f1c69ac7aedbf62f8f67925e4fb6f04b911cb20 Mon Sep 17 00:00:00 2001 From: Ilja Gavrylov Date: Tue, 21 Oct 2025 16:19:38 +0200 Subject: [PATCH 6/6] update mse not supported warning --- tools/wave/www/index.html | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/tools/wave/www/index.html b/tools/wave/www/index.html index 499191d66c..05dcd01cb4 100644 --- a/tools/wave/www/index.html +++ b/tools/wave/www/index.html @@ -159,14 +159,14 @@

addClass(tabbables[selectedTabbable], "focused"); } - function createErrorMessage() { + function createErrorMessage(message) { return { element: "article", className: "message is-warning", children: [ { className: "message-body", - text: 'Warning: MSE API is not supported', + text: message, }, ], }; @@ -255,8 +255,14 @@

if (!mseWarningElement) return; mseWarningElement.innerHTML = ""; - if (!('MediaSource' in window)) { - var error = createErrorMessage(); + if (!('MediaSource' in window) && !('MediaKeys' in window)) { + var error = createErrorMessage('Warning: MSE and EME APIs are not supported'); + mseWarningElement.appendChild(UI.createElement(error)); + } else if (!('MediaSource' in window)) { + var error = createErrorMessage('Warning: MSE API is not supported'); + mseWarningElement.appendChild(UI.createElement(error)); + } else if (!('MediaKeys' in window)) { + var error = createErrorMessage('Warning: EME API is not supported'); mseWarningElement.appendChild(UI.createElement(error)); }