VideoView spielt kein Sound ab

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:

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
 

Ähnliche Themen

E
Antworten
1
Aufrufe
2.257
markus.tullius
markus.tullius
P
Antworten
0
Aufrufe
2.261
Peter Lustig
P
A
  • Android_DEV
Antworten
2
Aufrufe
868
Android_DEV
A
Zurück
Oben Unten