diff --git a/CHANGELOG.md b/CHANGELOG.md index eac2977b3..109db29ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Improved NowPlayingInfo updates for iOS by setting playbackRate on pause/playing events and processing the final info on player desctruction. - Fixed an issue with misinterpretation of `targetVideoQuality = 0` (use video track with `uid == 0`) as `targetVideoQuality = undefined` (use ABR across all video qualities). +- Fixed an issue where the `srclang` property of a `textTrack` passed to a `SourceDescription` would not be parsed on Android. ### Added diff --git a/android/src/main/java/com/theoplayer/source/SourceAdapter.kt b/android/src/main/java/com/theoplayer/source/SourceAdapter.kt index 9609bf435..ce4ef1ce8 100644 --- a/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +++ b/android/src/main/java/com/theoplayer/source/SourceAdapter.kt @@ -48,6 +48,7 @@ private const val PROP_SRC = "src" private const val PROP_SOURCES = "sources" private const val PROP_DEFAULT = "default" private const val PROP_LABEL = "label" +private const val PROP_SRCLANG = "srclang" private const val PROP_KIND = "kind" private const val PROP_TIME_OFFSET = "timeOffset" private const val PROP_INTEGRATION = "integration" @@ -325,6 +326,7 @@ class SourceAdapter { val builder = TextTrackDescription.Builder(jsonTextTrack.optString(PROP_SRC)) .isDefault(jsonTextTrack.optBoolean(PROP_DEFAULT)) .label(jsonTextTrack.optString(PROP_LABEL)) + .srclang(jsonTextTrack.optString(PROP_SRCLANG)) .kind(parseTextTrackKind(jsonTextTrack.optString(PROP_KIND))!!) return builder.build() }