Java Code Examples for com.google.android.exoplayer2.C#ROLE_FLAG_SUPPLEMENTARY
The following examples show how to use
com.google.android.exoplayer2.C#ROLE_FLAG_SUPPLEMENTARY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DashManifestParser.java From MediaSDK with Apache License 2.0 | 6 votes |
@C.RoleFlags protected int parseTvaAudioPurposeCsValue(@Nullable String value) { if (value == null) { return 0; } switch (value) { case "1": // Audio description for the visually impaired. return C.ROLE_FLAG_DESCRIBES_VIDEO; case "2": // Audio description for the hard of hearing. return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; case "3": // Supplemental commentary. return C.ROLE_FLAG_SUPPLEMENTARY; case "4": // Director's commentary. return C.ROLE_FLAG_COMMENTARY; case "6": // Main programme audio. return C.ROLE_FLAG_MAIN; default: return 0; } }
Example 2
Source File: DashManifestParser.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
@C.RoleFlags protected int parseTvaAudioPurposeCsValue(String value) { if (value == null) { return 0; } switch (value) { case "1": // Audio description for the visually impaired. return C.ROLE_FLAG_DESCRIBES_VIDEO; case "2": // Audio description for the hard of hearing. return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; case "3": // Supplemental commentary. return C.ROLE_FLAG_SUPPLEMENTARY; case "4": // Director's commentary. return C.ROLE_FLAG_COMMENTARY; case "6": // Main programme audio. return C.ROLE_FLAG_MAIN; default: return 0; } }
Example 3
Source File: DashManifestParser.java From Telegram with GNU General Public License v2.0 | 6 votes |
@C.RoleFlags protected int parseTvaAudioPurposeCsValue(String value) { if (value == null) { return 0; } switch (value) { case "1": // Audio description for the visually impaired. return C.ROLE_FLAG_DESCRIBES_VIDEO; case "2": // Audio description for the hard of hearing. return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; case "3": // Supplemental commentary. return C.ROLE_FLAG_SUPPLEMENTARY; case "4": // Director's commentary. return C.ROLE_FLAG_COMMENTARY; case "6": // Main programme audio. return C.ROLE_FLAG_MAIN; default: return 0; } }
Example 4
Source File: DashManifestParser.java From MediaSDK with Apache License 2.0 | 5 votes |
@C.RoleFlags protected int parseDashRoleSchemeValue(@Nullable String value) { if (value == null) { return 0; } switch (value) { case "main": return C.ROLE_FLAG_MAIN; case "alternate": return C.ROLE_FLAG_ALTERNATE; case "supplementary": return C.ROLE_FLAG_SUPPLEMENTARY; case "commentary": return C.ROLE_FLAG_COMMENTARY; case "dub": return C.ROLE_FLAG_DUB; case "emergency": return C.ROLE_FLAG_EMERGENCY; case "caption": return C.ROLE_FLAG_CAPTION; case "subtitle": return C.ROLE_FLAG_SUBTITLE; case "sign": return C.ROLE_FLAG_SIGN; case "description": return C.ROLE_FLAG_DESCRIBES_VIDEO; case "enhanced-audio-intelligibility": return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; default: return 0; } }
Example 5
Source File: DashManifestParser.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@C.RoleFlags protected int parseDashRoleSchemeValue(String value) { if (value == null) { return 0; } switch (value) { case "main": return C.ROLE_FLAG_MAIN; case "alternate": return C.ROLE_FLAG_ALTERNATE; case "supplementary": return C.ROLE_FLAG_SUPPLEMENTARY; case "commentary": return C.ROLE_FLAG_COMMENTARY; case "dub": return C.ROLE_FLAG_DUB; case "emergency": return C.ROLE_FLAG_EMERGENCY; case "caption": return C.ROLE_FLAG_CAPTION; case "subtitle": return C.ROLE_FLAG_SUBTITLE; case "sign": return C.ROLE_FLAG_SIGN; case "description": return C.ROLE_FLAG_DESCRIBES_VIDEO; case "enhanced-audio-intelligibility": return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; default: return 0; } }
Example 6
Source File: DashManifestParser.java From Telegram with GNU General Public License v2.0 | 5 votes |
@C.RoleFlags protected int parseDashRoleSchemeValue(String value) { if (value == null) { return 0; } switch (value) { case "main": return C.ROLE_FLAG_MAIN; case "alternate": return C.ROLE_FLAG_ALTERNATE; case "supplementary": return C.ROLE_FLAG_SUPPLEMENTARY; case "commentary": return C.ROLE_FLAG_COMMENTARY; case "dub": return C.ROLE_FLAG_DUB; case "emergency": return C.ROLE_FLAG_EMERGENCY; case "caption": return C.ROLE_FLAG_CAPTION; case "subtitle": return C.ROLE_FLAG_SUBTITLE; case "sign": return C.ROLE_FLAG_SIGN; case "description": return C.ROLE_FLAG_DESCRIBES_VIDEO; case "enhanced-audio-intelligibility": return C.ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY; default: return 0; } }