title: Streaming to VideoView only plays on Wifi when using Samsung phones
body: <p>I am using the following library to stream YouTube videos to an Android application.</p>
  
  <p><a href="http://code.google.com/p/android-youtube-player/source/browse/trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java?r=3">http://code.google.com/p/android-youtube-player/source/browse/trunk/OpenYouTubeActivity/src/com/keyes/youtube/OpenYouTubePlayerActivity.java?r=3</a></p>
  
  <p>I am successfully able to play videos on HTC and Motorola phones over 3G and Wifi. However, on Samsung Galaxy (Epic 4G) and Samsung Galaxy II phones I am only able to play using Wifi. 3G gives me this error: "Cannot play video. Sorry this video cannot be played."</p>
  
  <p>I have tried forcing low quality YouTube streaming, but this did not help. I see in my log that <code>Start()</code> is being called in both cases (3G/Wifi). Is this an issue with VideoView? Is there a workaround?</p>
  
  <p><strong>Edit 2</strong></p>
  
  <p>The videos are coming from YouTube API. I have attempted using embedded and normal streams, as well as lowest quality stream available (varying per video). Also, I do not think it is an encoding issue since the same videos play correctly using Wifi. </p>
  
  <p><strong>Edit 1</strong></p>
  
  <p>I also receive the following output regardless of wether video plays using Wifi or does not using 3G.</p>
  
  <pre><code>01-30 15:22:38.305: E/MediaPlayer(3831): error (1, -1)
  01-30 15:22:38.305: E/MediaPlayer(3831): callback application
  01-30 15:22:38.305: E/MediaPlayer(3831): back from callback
  01-30 15:22:38.309: E/MediaPlayer(3831): Error (1,-1)
  </code></pre>
  
  <p>According to this <a href="https://github.com/android/platform_external_opencore/blob/master/pvmi/pvmf/include/pvmf_return_codes.h">Link</a>, these errors means the following (I think):</p>
  
  <pre><code>/*
   Definition of first error event in range (not an actual error code).
   */
  const PVMFStatus PVMFErrFirst = (-1);
  /*
   Return code for general failure
   */
  const PVMFStatus PVMFFailure = (-1);
  /*
  
  /*
   Return code for general success
   */
  const PVMFStatus PVMFSuccess = 1;
  /*
  </code></pre>
  
  <p>Further adding confusion.</p>