Skip to content

Commit

Permalink
remove Platform.canPlayType
Browse files Browse the repository at this point in the history
  • Loading branch information
tykus160 committed Mar 6, 2025
1 parent 17553e3 commit 57e0175
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/util/platform.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,6 @@ goog.require('shaka.util.Dom');
* @final
*/
shaka.util.Platform = class {
/**
* Returns true if the media type is supported natively by the platform.
*
* @param {string} mimeType
* @return {boolean}
*/
static supportsMediaType(mimeType) {
const video = shaka.util.Dom.anyMediaElement();
return video.canPlayType(mimeType) != '';
}

/**
* Check if the current platform is MS Edge.
*
Expand Down

0 comments on commit 57e0175

Please sign in to comment.