From 34c77eeb6dd4e86f2b9aae4fdbc540e9416e8955 Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Fri, 20 Oct 2023 11:48:22 +0200 Subject: [PATCH 1/2] Provide initial seekable range value for vods --- src/internal/adapter/THEOplayerAdapter.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal/adapter/THEOplayerAdapter.ts b/src/internal/adapter/THEOplayerAdapter.ts index 8478fceb4..47de16e45 100644 --- a/src/internal/adapter/THEOplayerAdapter.ts +++ b/src/internal/adapter/THEOplayerAdapter.ts @@ -142,6 +142,9 @@ export class THEOplayerAdapter extends DefaultEventDispatcher im this._state.selectedAudioTrack = event.selectedAudioTrack; this._state.selectedVideoTrack = event.selectedVideoTrack; this._state.selectedTextTrack = event.selectedTextTrack; + if (isFinite(this._state.duration)) { + this._state.seekable = [{start: 0, end: this._state.duration}]; + } }; private onDurationChange = (event: DurationChangeEvent) => { From 56a9368b41310bc065f56fde41b67e6d149942ad Mon Sep 17 00:00:00 2001 From: Tom Van Laerhoven Date: Fri, 20 Oct 2023 11:56:16 +0200 Subject: [PATCH 2/2] Add changelog entry --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 245ac3dd3..78812cde4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.1.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). +## [Unreleased] + +- Fixed an issue on Android where during play-out of a locally stored media asset the `seekable` property would not update. + ## [3.0.2] - 23-10-17 ### Fixed