title: How to play rtmp live stream in web browser?
body: <p>I am trying the rtmp url in video js player.But it was not working .</p>
  
  <p>In video js we have to give the type(application/x-mpegURL | video/mp4) in the source.</p>
  
  <pre><code>    &lt;video id="wiPlayer" class="video-js vjs-default-skin"
                 controls codecs="avc1.4D401E, mp4a.40.2" preload="auto" width="1200" height="400" poster="&lt;?=$post-&gt;screenShotUrl?&gt;" 
                  data-setup='{"aspectRatio":"640:320", "autoplay": true, "controlBar": {"fullscreenToggle": true, "progressControl": true}}'&gt;
   &lt;p class="vjs-no-js"&gt;We're sorry, but your browser doesn't support Video&lt;/p&gt;
   &lt;/video&gt;
  </code></pre>
  
  <p>the js code is </p>
  
  <pre><code>player = videojs('wiPlayer');
          player.src({
                  src: stream_url,
                  type: mPlayerType,// "video/mp4",//application/x-mpegURL
                  useCueTags: true
                   });
          window.onOrientation(player, 'wiPlayer');
          player.play();  
  </code></pre>
  
  <p>for me the url is like : </p>
  
  <pre><code>rtmp://vid-11239002.pull.usnecenter.broadcastapp.agora.cn/live/public1265537
  </code></pre>
  
  <p>How can i play this kind of live stream urls with video js? or do we have any other solution for this?</p>