SubtitleInfo¶
com.connectsdk.core.SubtitleInfo
Normalized reference object for information about a subtitle track.
It’s used in MediaInfo
class. The only one required parameter is
url
, others can be null
. This class is immutable and has a
builder for easy construction.
Different services support specific subtitle formats:
DLNAService
supports only SRT subtitles. Since there is no official specification for them, subtitles may not work on all DLNA-compatible devicesNetcastTVService
supports only SRT subtitles and has the same restrictions asDLNAService
CastService
supports only WebVTT subtitles and it has additional requirementshttps://developers.google.com/cast/docs/android_sender#cors-requirements
FireTVService
supports only WebVTT subtitlesWebOSTVService
supports WebVTT subtitles. Server providing subtitles should support CORS headers, similarly to Cast service’s requirements.
Methods¶
String getUrl ()
String getMimeType ()
String getLabel ()
String getLanguage ()
- boolean equals (Object o)
- Parameters: - o
int hashCode ()