
public class FileProtocolHandlerFactory extends Object implements IURLProtocolHandlerFactory
IURLProtocolHandlerFactory that demonstrates how
you can have Java act just like FFMPEG's internal "file:" protocol.
This just duplicates all the functionality in the default "file:" protocol
that FFMPEG implemements, but demonstrates how you can have FFMPEG
call back into Java.| Constructor and Description |
|---|
FileProtocolHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
IURLProtocolHandler |
getHandler(String protocol,
String url,
int flags)
Called by FFMPEG in order to get a handler to use for a given file.
|
public IURLProtocolHandler getHandler(String protocol, String url, int flags)
IURLProtocolHandlerFactorygetHandler in interface IURLProtocolHandlerFactoryprotocol - The protocol without a ':'. For example, "file", "http", or "yourcustomprotocol"url - The URL that FFMPEG is trying to open.flags - The flags that FFMPEG will pass to IURLProtocolHandler.open(String, int)IURLProtocolHandler to use, or null. If null, a file not found error will be passed back
to FFMPEG.Copyright © 2018 Humble Software. All rights reserved.