Interface ISubtitleFontsManager
Interface ISubtitleFontsManager.
Namespace: MediaBrowser.Controller.MediaEncoding
Assembly: MediaBrowser.Controller.dll
Syntax
public interface ISubtitleFontsManager
Methods
CheckExtractFonts(MediaSourceInfo, CancellationToken)
Extracts the video image.
Declaration
Task<bool> CheckExtractFonts(MediaSourceInfo mediaSource, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceInfo | mediaSource | The media source. |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | True when extraction was successful or fonts are available already; False when extraction has failed. |
CreateTranscodingFontsDir(MediaSourceInfo, String, CancellationToken)
Sets up a directory containing all embedded fonts for transcoding.
Declaration
Task<bool> CreateTranscodingFontsDir(MediaSourceInfo mediaSource, string targetDir, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
MediaSourceInfo | mediaSource | The media source. |
System.String | targetDir | |
System.Threading.CancellationToken | cancellationToken | The cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Boolean> | The path to a temporary fonts directory for transcoding. |
Initialize()
Initializes this instance.
Declaration
void Initialize()