[This is preliminary documentation and is subject to change.]
Searches subtitles for video file.
Namespace:
Subtitles.ServicesAssembly: Subtitles.Services (in Subtitles.Services)
Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# |
|---|
bool SearchByHash( Guid session, string videoHash, SubtitleLanguage[] languages, out Subtitle[] subtitles, out SubtitleActions[] actions, out string error ) |
| Visual Basic (Declaration) |
|---|
Function SearchByHash ( _ session As Guid, _ videoHash As String, _ languages As SubtitleLanguage(), _ <OutAttribute> ByRef subtitles As Subtitle(), _ <OutAttribute> ByRef actions As SubtitleActions(), _ <OutAttribute> ByRef error As String _ ) As Boolean |
| Visual C++ |
|---|
bool SearchByHash( Guid session, String^ videoHash, array<SubtitleLanguage>^ languages, [OutAttribute] array<Subtitle>^% subtitles, [OutAttribute] array<SubtitleActions^>^% actions, [OutAttribute] String^% error ) |
Parameters
- session
- Type: System..::.Guid
Unique session identifier obtained by ISession..::.LogIn(String, String, String, String%) method.
- videoHash
- Type: System..::.String
Calculated hash code for video file. Hash is calculated by algorithm described at http://www.subtitles-on.net/Development.aspx.
- languages
- Type: array<Subtitles.Services.Types..::.SubtitleLanguage>[]()[]
Optional language filter. If parameter is null then language filter is not applied.
- subtitles
- Type: array<Subtitles.Services.Types..::.Subtitle>[]()[]%
Array of subtitles which match search criteria.
- actions
- Type: array<Subtitles.Services.Types..::.SubtitleActions>[]()[]%
Allowed actions for each subtitle.
- error
- Type: System..::.String%
Error description.