Git Product home page Git Product logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
never thought of that - I am not even sure where this class actually used since 
a do not use it directly. But as it seems the app-engine does not allow any 
java.nio Buffers. That's a problem for me since I use these all over the place.
I would need to create a new level of abstraction ... Not sure if I can do this 
this weekend but I'll try. My GF is on a business trip - got some time to spare

Original comment by Sebastian.Annies on 24 Jun 2011 at 3:03

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
Introducing the interface was easy. Now there is still the getSegment method 
returning a ByteBuffer. Let's see...

Original comment by Sebastian.Annies on 27 Jun 2011 at 9:08

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
java.nio.ByteBuffer is in the whitelist of Google AppEngine
I don't clearly understand your last comment

Original comment by [email protected] on 27 Jun 2011 at 1:49

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
Ooops. I didn't read the list too carefully. 
I like the interface without ByteBuffer better, anyhow. The change was not that 
big.

Original comment by Sebastian.Annies on 27 Jun 2011 at 2:07

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
Two days ago, I've done successful test with mp4parser in a Java application.
Today, I've done a new try with Google App Engine and I get the message
===========================================
java.lang.NoClassDefFoundError: java.nio.MappedByteBuffer is a restricted 
class. Please see the Google  App Engine developer's guide for more details.
    at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:51)
    at com.coremedia.iso.IsoBufferWrapperImpl.<init>(IsoBufferWrapperImpl.java:75)
.......
===========================================
line 75 is:

buffers.add(raf.getChannel().map(FileChannel.MapMode.READ_ONLY, i, filelength - 
i).slice());

Is there an implicit usage of MappedByteBuffer?

Original comment by [email protected] on 29 Jun 2011 at 5:01

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
The MappedByteBuffer is always used if you map a file into the memory. Perhaps 
you could try to read the file into a bytebuffer by yourself and then put that 
into the IsoBufferWrapper. That should not use a MappedByteBuffer!

Original comment by Sebastian.Annies on 29 Jun 2011 at 5:37

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
OK
It's a bit tricky, but I will try it and send a report
Thank you for the reply

Original comment by [email protected] on 29 Jun 2011 at 8:09

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024

It's trash, but it do the work for the test. Now, I'm confident that the 
library can work in Google App Engine.
I will search how I have to do it properly to be compatible with future version 
of your code (something like surcharge of IsoBufferWrapperImpl class and better 
attention to large files). Any advice is welcome.
Thank's for your help. 

Other point:
I think you have a problem in HandlerBox.java if the name returned by getName() 
is a string with length=1 and the only char is the byte 0 (which occurs); then 
you produce a malformed string with a 0 in the middle
Possibly the same problem occurs in DataEntryUrnBox.java in the getName method

Original comment by [email protected] on 7 Jul 2011 at 1:28

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
I added a FileChannelIsoBufferWrapperImpl based on RandomAccessFile. Just check 
out the trunk. This should work on AppEngine.

Original comment by Sebastian.Annies on 7 Jul 2011 at 2:31

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
Fine
It works

Original comment by [email protected] on 7 Jul 2011 at 4:12

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
is it ok to close the issue?

Original comment by Sebastian.Annies on 8 Jul 2011 at 6:37

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
closing. seems to be resolved

Original comment by Sebastian.Annies on 14 Jul 2011 at 9:55

  • Changed state: Fixed

from mp4parser.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 1, 2024
Renamed FileChannelIsoBufferWrapperImpl to 
RandomAccessFileIsoBufferWrapperImpl. The old name was misleading!

Original comment by Sebastian.Annies on 15 Jul 2011 at 4:23

from mp4parser.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.