I like to create a player and read from a byte array. Bellow is the link from another tektip member with the suggestion of how to achieve that. s/he is using ByteBuffer, I'm trying to use put method to fill out my ByteBuffer with the byte array but it keep giving me java.lang.NullPointerException
here is what i do
ByteBuffer inputbuf;
inputbuf.put(videodata, 0, videodata.length);
it suppose to be straight forward but it doesn't work. I also tried
inputbuf.wrap(videodata, 0, videodata.length);
which doesn't give me error but it retunes null... does anybody has any suggestions.
Thanx
Here is the link to the suggestions:
here is what i do
ByteBuffer inputbuf;
inputbuf.put(videodata, 0, videodata.length);
it suppose to be straight forward but it doesn't work. I also tried
inputbuf.wrap(videodata, 0, videodata.length);
which doesn't give me error but it retunes null... does anybody has any suggestions.
Thanx
Here is the link to the suggestions: