title: Android video not valid for streaming
body: <p>i'm trying following code playing video. </p>
  
  <pre><code>public class VidplayerActivity extends Activity {
  
      private MediaController mc;
      String LINK = "http://***/test.3gp"; // 5 mb 
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          try {
              super.onCreate(savedInstanceState);
              setContentView(R.layout.main);
              VideoView vd = (VideoView) findViewById(R.id.delta);
  
              Uri uri = Uri.parse(LINK);
  
              mc = new MediaController(this);
              vd.setMediaController(mc);
  
              vd.setVideoURI(uri);
              vd.start();
          }
          catch(Exception e) {
              System.out.println(e.getStackTrace());
          }
      }
  
  }
  </code></pre>
  
  <p>it shows <strong>"Sorry,this video is not valid for streaming to this device"</strong> in android 1.5 and 1.6. And the video details is below</p>
  
  <p><strong>EDIT:</strong></p>
  
  <blockquote>
    <p>Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
    '/home/cvbcvb/Desktop/test.3gp':</p>
    
    <p>Metadata:</p>
  
  <pre><code>major_brand     : 3gp4
  
  minor_version   : 512
  
  compatible_brands: isomiso23gp4
  </code></pre>
    
    <p>Duration: 00:03:00.04, start: 0.000000, bitrate: 150 kb/s</p>
  
  <pre><code>Stream #0.0(und): Video: h263, yuv420p, 176x144 [PAR 12:11 DAR
  </code></pre>
    
    <p>4:3], 138 kb/s, 25 fps, 25 tbr, 25 tbn, 29.97 tbc</p>
  
  <pre><code>Stream #0.1(und): Audio: amrnb, 8000 Hz, 1 channels, flt, 8 kb/s
  </code></pre>
    
    <p>[STREAM]</p>
    
    <p>index=0</p>
    
    <p>codec_name=h263</p>
    
    <p>codec_long_name=H.263 / H.263-1996, H.263+ / H.263-1998 / H.263
    version 2</p>
    
    <p>codec_type=video</p>
    
    <p>codec_time_base=1001/30000</p>
    
    <p>codec_tag_string=s263</p>
    
    <p>codec_tag=0x33363273</p>
    
    <p>width=176</p>
    
    <p>height=144</p>
    
    <p>has_b_frames=0</p>
    
    <p>sample_aspect_ratio=12:11</p>
    
    <p>display_aspect_ratio=4:3</p>
    
    <p>pix_fmt=yuv420p</p>
    
    <p>r_frame_rate=25/1</p>
    
    <p>avg_frame_rate=25/1</p>
    
    <p>time_base=1/25</p>
    
    <p>language=und</p>
    
    <p>start_time=0.000000 </p>
    
    <p>duration=180.040000 </p>
    
    <p>nb_frames=4501</p>
    
    <p>TAG:language=und</p>
    
    <p>[/STREAM]</p>
    
    <p>[STREAM]</p>
    
    <p>index=1</p>
    
    <p>codec_name=amrnb</p>
    
    <p>codec_long_name=Adaptive Multi-Rate NarrowBand</p>
    
    <p>codec_type=audio</p>
    
    <p>codec_time_base=0/1</p>
    
    <p>codec_tag_string=samr</p>
    
    <p>codec_tag=0x726d6173</p>
    
    <p>sample_rate=8000.000000 </p>
    
    <p>channels=1</p>
    
    <p>bits_per_sample=0</p>
    
    <p>r_frame_rate=0/0</p>
    
    <p>avg_frame_rate=0/0</p>
    
    <p>time_base=1/8000</p>
    
    <p>language=und</p>
    
    <p>start_time=0.000000 </p>
    
    <p>duration=180.000000 </p>
    
    <p>nb_frames=9000</p>
    
    <p>TAG:language=und</p>
    
    <p>[/STREAM]</p>
  </blockquote>