Skip to main content

Static Methods

The Webamp class has the following static methods:

browserIsSupported()

Returns a true if the current browser supports the features that Webamp depends upon. It is recommended to check this before you attempt to construct an instance of Webamp.

import Webamp from "webamp";

if (Webamp.browserIsSupported()) {
new Webamp({
/* ... */
});
// ...
} else {
// Perhaps you could show some simpler player in this case.
}