From d8798e6dcb38e5008b8523bc1bd8ceb0e0a5560a Mon Sep 17 00:00:00 2001 From: David Chung Date: Tue, 1 Aug 2023 11:28:41 -0700 Subject: [PATCH] Update to v3.1.3 --- CHANGELOG.md | 6 +++++- .../js/app/shared/media/preview/videoPreview.js | 14 +++++++------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cb83a4..5dfa970 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,9 +3,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [3.1.3] - 2023-08-01 +- Fixed an issue where media analysis result is not visible in the web application + ## [3.1.2] - 2023-04-20 - Updated object ownership configuration on the S3 buckets. -- Security patching` +- Security patching ## [3.1.1] - 2023-04-3 ### Added diff --git a/source/webapp/src/lib/js/app/shared/media/preview/videoPreview.js b/source/webapp/src/lib/js/app/shared/media/preview/videoPreview.js index 37f637d..cdfbf38 100644 --- a/source/webapp/src/lib/js/app/shared/media/preview/videoPreview.js +++ b/source/webapp/src/lib/js/app/shared/media/preview/videoPreview.js @@ -213,9 +213,9 @@ export default class VideoPreview extends BasePreview { trackIsEnabled(label) { if (this.player) { const tracks = this.player.remoteTextTracks(); - for (let track of tracks) { - if (track.label === label) { - return track.mode === 'showing'; + for (let i = 0; i < tracks.length; i++) { + if (tracks[i].label === label) { + return tracks[i].mode === 'showing'; } } } @@ -262,10 +262,10 @@ export default class VideoPreview extends BasePreview { async trackToggle(label, on) { if (this.player) { const tracks = this.player.remoteTextTracks(); - for (let track of tracks) { - if (track.label === label) { - track.mode = (on) ? 'showing' : 'hidden'; - return this.markerToggle(track, on); + for (let i = 0; i < tracks.length; i++) { + if (tracks[i].label === label) { + tracks[i].mode = (on) ? 'showing' : 'hidden'; + return this.markerToggle(tracks[i], on); } } }