• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MediaException: premature end of stream

 
Mannu Sureka
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,



I am getting an exception:

javax.microedition.media.MediaException: premature end of stream

I can play the test-wav.wav file in winamp.

Thanks
 
Ould Nadif
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that your probleme is

Replace your URL
= "http://java.sun.com/products/java"+"media/mma/media/test-wav.wav";

by

String wav = "http://java.sun.com/products/java/media/mma/media/test-wav.wav";

Good luck

OULD NADIF
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic