title: Using JWplayer in Android for streaming video playback in Phonegap
body: <p>I'm trying to use JWPlayer as a way around Android not supporting HLS playback in Webview in Phonegap (or ar least I can't get it to work, only with WebM streams and the video plugin on <a href="https://github.com/macdonst/VideoPlayer" rel="nofollow">https://github.com/macdonst/VideoPlayer</a> , HLS streams give audio only ) </p>
  
  <p>I know the user needs flash installed but at the moment what's most importart for me is to get either the RTMP or HLS (.m3u8) displayed on the device (2.3, 4.0 or 4.1, whichever works!)</p>
  
  <p>However I keep getting the "Error loading player: no playable sources found" error when implementing the JWplayer in android. So far I have only tested in the simulator. </p>
  
  <p>The code is nothing fancy, in the HTML file after including cordova JS all I do is: </p>
  
  <pre><code> &lt;script type="text/javascript" src="jwplayer/jwplayer.js" &gt;&lt;/script&gt;
   &lt;script type="text/javascript"&gt;jwplayer.key="b+mykey"&lt;/script&gt;
   &lt;div id="my-video"&gt;&lt;/div&gt; 
   &lt;script type="text/javascript"&gt;
          jwplayer('my-video').setup({
              flashplayer: "javascripts/lib/jwplayer/player.swf",      
                   streamer: "rtmp://myserveraddressgoeshere",
                   file: "corecctfile.goeshere-sdh",
                   provider:"rtmp",
                   autostart: 'true',
                   controlbar: "over",
                   width: '720',
                   height: '405'
           });&lt;/script&gt;
  </code></pre>
  
  <p>Obviously I have the correct paths but obscured them here for client privacy reasons. </p>
  
  <p>Does anyone have an idea as to why this does not work? Or how I <em>can</em> get the RTMP / HLS stream to work on an Android device? 
  As mentioned the application is a PhoneGap application. </p>
  
  <p>Thanks! </p>