Skip to content

Commit

Permalink
Merge pull request #217 from THEOplayer/bugfix/android_offline_mp4_se…
Browse files Browse the repository at this point in the history
…ekable

Bugfix/android offline mp4 seekable
  • Loading branch information
tvanlaerhoven authored Oct 24, 2023
2 parents 6812ffb + 56a9368 commit 6854d88
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions src/internal/adapter/THEOplayerAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ export class THEOplayerAdapter extends DefaultEventDispatcher<PlayerEventMap> 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) => {
Expand Down

0 comments on commit 6854d88

Please sign in to comment.