title: Playing RTMP stream with VideoJS player
body: <p>I'm trying to play <code>RTMP</code> stream with <code>VideoJS</code> player, below is my code:</p>
  
  <pre><code>&lt;head&gt;
    &lt;link href="http://vjs.zencdn.net/6.2.0/video-js.css" rel="stylesheet"&gt;
  
    &lt;!-- If you'd like to support IE8 --&gt; 
    &lt;script src="http://vjs.zencdn.net/ie8/1.1.2/videojs-ie8.min.js"&gt;&lt;/script&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;video id="my-video" class="video-js" controls preload="auto" width="640" height="264" data-setup='{"techorder" : ["flash"]}'&gt;
      &lt;source src="rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov" type="rtmp/mp4"&gt;                                                                                                                           
      &lt;p class="vjs-no-js"&gt;
        To view this video please enable JavaScript, and consider upgrading to a web browser that
        &lt;a href="http://videojs.com/html5-video-support/" target="_blank"&gt;supports HTML5 video&lt;/a&gt;
      &lt;/p&gt;
    &lt;/video&gt;
  
    &lt;script src="http://vjs.zencdn.net/6.2.0/video.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>The error I'm seeing is this:</p>
  
  <blockquote>
    <p>VIDEOJS: ERROR: (CODE:4 MEDIA_ERR_SRC_NOT_SUPPORTED) No compatible source was found for this media. MediaError {code: 4, message: "No compatible source was found for this media."}</p>
  </blockquote>
  
  <p>The error is quite clear, but there are plenty of docs showing people success stories of playing <code>RTMP</code> streams with <code>VideoJS</code>:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/33940721/stream-video-with-rtmp-and-videojs">Stream video with rtmp and videojs</a></li>
  <li><a href="https://stackoverflow.com/questions/43271187/how-to-play-rtmp-live-stream-using-videojs">How to play rtmp live stream using videojs？</a></li>
  </ul>
  
  <p>I know for sure that the following URL does play on <code>VLC</code> player and so does it on <code>JWPlayer</code>:</p>
  
  <pre><code>rtmp://184.72.239.149/vod/mp4/BigBuckBunny_115k.mov
  </code></pre>
  
  <p>What could be the problem?</p>