How to check browser support playbackRate in source?
<p>I am building a video controller capable of changing playbackRate.
However, some browsers that do not support the playbackRate function would like to display the message.
For example, "Not supported in this browser".</p>

<p>Is there a way to check if the playbackRate function is working properly in JavaScript?</p>

<p>Here's how I tried:</p>

<pre><code>try{
    player.playbackRate = 0.95;
    // if check here : console.log(player.playbackRate) = 0.95 in not supported browser.

    if (player.playbackRate != 0.95) {
        alert('Not supported in this browser');
    }

    player.playbackRate = 1;
}
catch(e) {
    alert('Not supported in this browser');
}
</code></pre>

<p>However, even on browsers that do not support playbackRate, the actual playbackRate value has changed and no error or message has been output.</p>

<p>Is there any way I can?</p>

<p>I hope you can help a lot.</p>