• 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!