S
Swoop
Fortgeschrittenes Mitglied
- 4
Hallo,
ich habe das Problem, dass in meinem VideoView einfach kein Sound abgespielt wird. Das Video wird einwandfrei abgespielt und liegt im Mp4 Format vor. Am PC höre ich jedoch Sound...
Hier mein Code:
Vielen Danke schonmal
ich habe das Problem, dass in meinem VideoView einfach kein Sound abgespielt wird. Das Video wird einwandfrei abgespielt und liegt im Mp4 Format vor. Am PC höre ich jedoch Sound...
Hier mein Code:
Code:
@Override
public void onCreate(Bundle icicle) {
super.onCreate(icicle);
setContentView(R.layout.main);
mVideoView = (VideoView) findViewById(R.id.video);
if (path == "") {
// Tell the user to provide a media file URL/path.
Toast.makeText(
VideoViewDemo1.this,
"Please edit VideoViewDemo Activity, and set path"
+ " variable to your media file URL/path", Toast.LENGTH_LONG).show();
} else {
/*
* Alternatively,for streaming media you can use
* mVideoView.setVideoURI(Uri.parse(URLstring));
*/
mVideoView.setVideoPath(path);
mVideoView.setMediaController(new MediaController(this));
mVideoView.requestFocus();
mVideoView.start();
}
}
Vielen Danke schonmal