Hello Ranjeet, thank you for the assist. As I am new to all of this, therefore confused. it would be a bit more advantageous for me if you could add the necessary code line for the ( raw) segment, video data and buffer progamatically? have buffer as frame wise?
On Dec 14, 1:49 pm, Ranjeet <[email protected]> wrote: > Hi Valentino > > I belive you are able to play the vedio from the SD Card. > > Now to play the vedio through streaming, you need to get the RAW VEDIO data > and buffer it programatically, then you need to give the path of the buffer > to play it back, and simultaneously in back ground it should buffer with new > data through web. > > have your buffer as Frame wise. > > Let us know if you have the same issue. > > Thanks > RanjeetOn Mon, Dec 14, 2009 at 5:52 PM, Valentino XM <[email protected]> > wrote: > > Hi! > > > I have been trying to code this for 6 days. > > > Playing from a File or Stream > > > MediaPlayer mp = new MediaPlayer(); > > mp.setDataSource(PATH_TO_FILE); > > mp.prepare(); > > mp.start(); > > > my code... > > > package info.shouraig.com; > > > import android.app.Activity; > > import android.net.Uri; > > import android.os.Bundle; > > import android.util.Log; > > import android.widget.MediaController; > > import android.widget.VideoView; > > > public class XSO6 extends Activity { > > private final static String RTSP = "rtsp:// > > v4.cache2.c.youtube.com/ > >http://www.youtube.com/watch?v=8bmWwxixT0Y"; > > VideoView VideoViewXSO6; > > > /** Called when the activity is first created. */ > > �...@override > > public void onCreate(Bundle savedInstanceState) { > > super.onCreate(savedInstanceState); > > setContentView(R.layout.main); > > > //***VideoView to video element inside Multimedia.xml file > > > VideoView videoView =(VideoView)findViewById > > (R.id.VideoViewXSO6); > > Log.v("videoViewXSO6", "***Video to Play:: " + RTSP); > > MediaController mc = new MediaController(this); > > mc.setAnchorView(videoView); > > Uri video = Uri.parse(RTSP); > > videoView.setMediaController(mc); > > videoView.setVideoURI(video); > > videoView.start(); > > } > > } > > > and still.. the error message in the emulator reads... "sorry this > > video cannot be played" > > > is there something i need to do or not do in order to stream this > > video from Youtube".. > > > TIA > > > cheers > > > -- > > You received this message because you are subscribed to the Google > > Groups "Android Developers" group.> To post to this group, send email > > [email protected] > > To unsubscribe from this group, send email > > to>[email protected]<android-developers%[email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

