webamp/packages/webamp-docs/docs/06_API/04_static-methods.md
Jordan Eldredge 23c34434f3 Milkdrop docs
2025-06-19 12:02:18 -07:00

498 B

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.
}