Skip to content

Commit

Permalink
Merge pull request #89 from contra/patch-1
Browse files Browse the repository at this point in the history
add mimetype support
  • Loading branch information
flavioribeiro committed Oct 17, 2017
2 parents bf2909a + eea232c commit 47b8c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ export default class RTMP extends Flash {
}
}

RTMP.canPlay = function (source) {
return !!((source.indexOf('rtmp://') > -1 || source.indexOf('rtmps://') > -1 || source.indexOf('.smil') > -1) && Browser.hasFlash)
RTMP.canPlay = function (source, mimeType) {
return !!((source.indexOf('rtmp://') > -1 || source.indexOf('rtmps://') > -1 || source.indexOf('.smil') > -1 || mimeType && mimeType.indexOf('rtmp') > -1) && Browser.hasFlash)
};

RTMP.debug = s => console.log(s)

0 comments on commit 47b8c6a

Please sign in to comment.