04-23-2012 02:58 PM
This ONLY happens on 7.1.
I have about 10 buttons on the screen, each are assigned some audio within it's class.
// load the audio InputStream is = getClass().getResourceAsStream(soundresource); _snd = Manager.createPlayer(is, "audio/mp3"); _snd.realize(); _snd.prefetch(); is.close();
Two of the buttons get added, then an exception is thrown:
net.rim.device.internal.media.RimMediaException: Null Streaming Session Returned
Doesnt' seem to be my day for audio.
Solved! Go to Solution.
04-23-2012 02:59 PM
If you get rid of the InputStream, you get the same effect, but the error is "Media Exception".
// load the audio //InputStream is = getClass().getResourceAsStream(soundresource); _snd = Manager.createPlayer(soundresource); _snd.realize(); _snd.prefetch(); //is.close();
04-23-2012 03:13 PM
So are you trying to create 10 Media Players at the same time? Don't think you can do that. I think you can create either 1 or 2 (2 for CDMA devices). Does that explain the problem?
04-23-2012 03:20 PM
It doesn't maek sense, because in OS7.0 it works without issue.
In OS 7.1, same hardware, it does not work.
So yes, I'm triyng to make 10 Players, so I can have everything preloaded, but it does work on every OS except 7.1.
04-23-2012 03:37 PM - edited 04-23-2012 03:38 PM
Well, fixed the issue but cutting it to one Player - still not sure why it works lower then 7.1 though!
Thanks!
05-17-2012 12:28 PM - edited 05-17-2012 12:29 PM
I do have the same issue. I can create only two Players at hte same time, a third launches a RimMediaException (with message "Null Streaming Session Returned") on prefetch.
Obviusly all work perfectly on 7.0 and previous platforms.
Unfortunately, I can't avoid to create many Players at the same time.