Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(FEC-10890): the captions aren't displayed for audio entry and UI doesn't clickable. #533

Merged
merged 4 commits into from
Jan 24, 2021

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented Jan 18, 2021

Description of the Changes

Issue: subtitles container append before poster and located under it on the DOM tree.
Solution: poster, captions, and black screen container blocking user action from UI add pointer-events: none to avoid it.
append captions container after playkit containers.

CheckLists

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • test are passing in local environment
  • Travis tests are passing (or test results are not worse than on master branch :))
  • Docs have been updated

Issue: subtitles container append before poster and located under it on the DOM tree.
Solution: add z-index to subtitle to appear above the poster.
@Yuvalke Yuvalke changed the title fix(FEC-10890): the captions aren't displayed for audio entry fix(FEC-10890): the captions aren't displayed for audio entry and UI doesn't clickable. Jan 18, 2021
@Yuvalke Yuvalke requested a review from a team January 18, 2021 10:13
@Yuvalke Yuvalke self-assigned this Jan 18, 2021
this._textDisplayEl = Utils.Dom.createElement('div');
Utils.Dom.setAttribute(this._textDisplayEl, 'aria-live', 'polite');
Utils.Dom.addClassName(this._textDisplayEl, SUBTITLES_CLASS_NAME);
Utils.Dom.appendChild(this._el, this._textDisplayEl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Yuvalke what if there is captions at 0 time and preload true. the captions will displayed over the pre-playback screen no?

Copy link
Contributor Author

@Yuvalke Yuvalke Jan 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yairans Nothing change for pre-playback(UI) it's an internal change on playkit(playkit-container) for the order it appends on.
Anyway, pre-playback has z-index:1

@Yuvalke Yuvalke merged commit bb888b1 into master Jan 24, 2021
@Yuvalke Yuvalke deleted the FEC-10890 branch January 24, 2021 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants