Skip to main content

Static Methods

The Winamp 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 Winamp.

import Webamp from "webamp";

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