Perhaps the library you are using needs a random access file, not a stream.
If that’s the case you could get the media object, save it to file (see here for an example), then feed the file to your library.
Perhaps the library you are using needs a random access file, not a stream.
If that’s the case you could get the media object, save it to file (see here for an example), then feed the file to your library.