Package com.avpkit.core.io
Interface IURLProtocolHandlerFactory
-
- All Known Implementing Classes:
AVPKitIO,FileProtocolHandlerFactory,NullProtocolHandlerFactory
public interface IURLProtocolHandlerFactory
Used by URLProtocolManager to get a factory for a given protocol. Implement this interface on any factories that make your specific implementation of IURLProtocolHandler, and then register the factory with your URLProtocolManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IURLProtocolHandlergetHandler(java.lang.String url, int flags)Called by FFMPEG in order to get a handler to use for a given file.
-
-
-
Method Detail
-
getHandler
IURLProtocolHandler getHandler(java.lang.String url, int flags)
Called by FFMPEG in order to get a handler to use for a given file.- Parameters:
url- The URL that FFMPEG is trying to open.flags- The flags that FFMPEG will pass toIURLProtocolHandler.open(String, int)- Returns:
- A
IURLProtocolHandlerto use, or null. If null, a file not found error will be passed back to FFMPEG.
-
-