title: JWPlayer: Dynamic bit rate switching with MP4 files?
body: <p>We are currently using <a href="http://www.brightcove.com/" rel="nofollow noreferrer">Brightcove</a> to host our videos. We wanted to take advantage of the RTMP streams available for dynamic bit rate switching but <a href="https://stackoverflow.com/a/27025776/1132838">unfortunately they are only available to BC's own player</a>.</p>
  
  <p>Assuming <a href="http://support.jwplayer.com/customer/portal/articles/1430518-pseudo-streaming-in-flash" rel="nofollow noreferrer">HTTP pseudo streaming</a> is available, is there a way to achieve dynamic bit rate switching with MP4 files?</p>
  
  <p>I could only find examples for <a href="http://support.jwplayer.com/customer/portal/articles/1430398-dynamic-rtmp-streaming" rel="nofollow noreferrer">RTMP streaming</a> and <a href="http://support.jwplayer.com/customer/portal/articles/1428524-hd-quality-toggling" rel="nofollow noreferrer">manual rendition toggling</a> in the sopport pages.</p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>This will allow multiple video renditions, but won't dynamically adjust to the user's available bandwith. Also, the default rendition has to be manually selected.</p>
  
  <pre><code>&lt;div id="myElement"&gt;&lt;/div&gt;
  
  &lt;script&gt;
      jwplayer("myElement").setup({
        image: "/uploads/myPoster.jpg",
        sources: [{
          file: "/uploads/myVideo720mp4",
          label: "720p HD"
        },{
          file: "/uploads/myVideo360.mp4",
          label: "360p SD",
          "default": "true"
        },{
          file: "/uploads/myVideo180mp4",
          label: "180p Web"
        }]
      });
  &lt;/script&gt;
  </code></pre>