Skip to content

Commit

Permalink
Merge pull request #36 from aws-solutions/release/v3.1.3
Browse files Browse the repository at this point in the history
Update to v3.1.3
  • Loading branch information
dch90 authored Aug 1, 2023
2 parents a9df1bf + d8798e6 commit 8753b92
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
}
}
}
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 8753b92

Please sign in to comment.