java - Android Videoview video not seen -


I am using VDOV for playback MP3 files from local machine using Android emulator. I've heard the audio, but the screen is empty and no video has been seen. Android SDK 2.0.1

Does anyone know what's missing in:

  package com.hello; Import android App Importroid.os.Bundle; Import android.widget.MediaController; Import android.widget.VideoView; Public Classroom Hello Android Activity Extends (Override Public Zero on VideoView vv; @Create (Bundle Saved InstantState) {Super.Nocrat (Saved Instantstate); setContentView (R.layout.main); VV = (Video See VVBiID (RID Video Power 01); Media Controller NC = New Media Controller (this); vv.setMediaController (NC); vv.setVideoPath ("/ sdcard / yu.mp4"); vv.requestFocus (); vv. Start ();} Pause public at zero () {vv.stopPlayback ();}}  

Eg xml

   Android; Watch Video Android: ID = "@ + ID / Video Visual" Android : Layout_width = "wrap_content" Android: layout_height = "wrap_content"> 
& lt; / LinearLayout & gt;

I am facing the same problem with 2.0.1. But my question is how does a single video link works well with 2.0 and lower versions ...?

Update

A bug has been registered regarding this problem ...


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -