How to detect native browser support for RTMP streaming?

I realized that some browsers have native support for RTMP, like:

  • Safari 11
  • Chrome for Android 61

Is it possible to check if the browser supports RTMP streaming using JavaScript?

Motivation: use the browser's default video tag when possible.