Check if canPlayType throws error and set support flag accordingly

Fixes #216