Petrica Clement Chiriac (Tica2)
unread,Feb 10, 2012, 5:19:28 AM2/10/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bst-player
Hi,
I have a problem with NativePlayer.
See stack trace:
Caused by: java.lang.IndexOutOfBoundsException: Index: 14, Size: 1
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at
com.bramosystems.oss.player.core.client.playlist.MRL.getNextResource(MRL.java:
93)
at
com.bramosystems.oss.player.core.client.playlist.PlaylistManager._playOrLoadMedia(PlaylistManager.java:
291)
at
com.bramosystems.oss.player.core.client.playlist.PlaylistManager.load(PlaylistManager.java:
248)
at
com.bramosystems.oss.player.core.client.ui.NativePlayer.onLoad(NativePlayer.java:
347)
at com.google.gwt.user.client.ui.Composite.onAttach(Composite.java:
179)
at com.google.gwt.user.client.ui.AttachDetachException
$1.execute(AttachDetachException.java:34)
at
com.google.gwt.user.client.ui.AttachDetachException.tryCommand(AttachDetachException.java:
74)
... 67 more
Problem is in:
MRL class methid getNextResource()
public String getNextResource(boolean roll) {
_index++;
_index = (roll && (_index == _urls.size())) ? 0 : _index;
return _urls.get(_index);
}
rool is true
_index = 0
How can I avoid this problem ?
My usage:
audioPlayer = PlayerUtil.getPlayer(Plugin.Native, url, false, "30px",
width + "px");
audioPanel.setWidget(audioPlayer);
Best,
Petrica Chiriac