I am writing a javascript decoder for DICOM images and notice that safari supports native decode of JPEG2000 which some DICOMs contain.
I can get this to work, but can't find a resource on how to detect the feature other than:
Detect the browser type Detect Safari browser. All of which seem either rather hacky or in the case of
window.safari !== undefined
- doesn't work for iOS.Try and detect failure, but this kinda defeats the object of trying to decode be as fast as possible!
So, is there a general way of detecting which codecs a browser supports?