
public class FfmpegIO extends Object
The following methods are not meant to be generally called by code (although they can be).
You should never need to call this method. CallingURLProtocolManager.registerFactory(String, IURLProtocolHandlerFactory)
should cause it to be instantiated.
They are generally 'thread-aware' but not 'thread-safe', meaning if you use a handle
on a thread, you are a responsible for making sure you don't
reuse it on other threads.
They forward into ffmpeg's URL read/write/seek capabilities
and allow our test scripts to make sure our URLProtocolHandlers
(and FFMPEG's native handlers) work as expected.
Lastly this class, unlike other classes in the library, does not use SWIG to generate
the Java objects, so you need to be careful not to change method names as the corresponding
native code relies on specific naming and parameters.
| Constructor and Description |
|---|
FfmpegIO() |
| Modifier and Type | Method and Description |
|---|---|
static void |
init()
Internal Only.
|
static void |
load()
Force a load of all native libraries; not normally needed
|
static int |
url_close(FfmpegIOHandle handle) |
static int |
url_open(FfmpegIOHandle handle,
String filename,
int flags) |
static int |
url_read(FfmpegIOHandle handle,
byte[] buffer,
int length) |
static long |
url_seek(FfmpegIOHandle handle,
long position,
int whence) |
static int |
url_write(FfmpegIOHandle handle,
byte[] buffer,
int length) |
public static void load()
public static void init()
public static int url_open(FfmpegIOHandle handle, String filename, int flags)
public static int url_read(FfmpegIOHandle handle, byte[] buffer, int length)
public static int url_close(FfmpegIOHandle handle)
public static int url_write(FfmpegIOHandle handle, byte[] buffer, int length)
public static long url_seek(FfmpegIOHandle handle, long position, int whence)
Copyright © 2018 Humble Software. All rights reserved.