Ich habe den Namen eines Videofiles welchen ich in das Feld
Video.VideoName speicher.
Nun möchte ich dieses Video abspielen, jedoch kommt: Video kann nicht
wiedergegeben werden.
1 | public class Video extends Activity {
|
2 | protected static String VideoName;
|
3 |
|
4 | @Override
|
5 | protected void onCreate(Bundle savedInstanceState) {
|
6 | // TODO Auto-generated method stub
|
7 | super.onCreate(savedInstanceState);
|
8 | setContentView(R.layout.video);
|
9 |
|
10 |
|
11 | VideoView vv = (VideoView) findViewById(R.id.videoView1);
|
12 | vv.setMediaController(new MediaController(this));
|
13 | vv.setVideoPath("/assets/" + Video.VideoName);
|
14 | vv.requestFocus();
|
15 | vv.start();
|
16 | }
|
17 |
|
18 | }
|
Was mache ich falsch=?