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

feat(FEC-7954): poster and thumbnail preview missing on tv player #97

Merged
merged 12 commits into from
Mar 12, 2018

Conversation

dan-ziv
Copy link
Contributor

@dan-ziv dan-ziv commented Mar 12, 2018

Description of the Changes

  1. Split poster and thumbs handling to separate ott & ovp files.
  2. Handle ott poster logic.

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

@dan-ziv dan-ziv requested review from OrenMe and yairans March 12, 2018 12:31
OrenMe
OrenMe previously approved these changes Mar 12, 2018
posters.forEach(picture => {
const w = picture.width;
const h = picture.height;
const widthDelta = Math.abs(w - width);
Copy link
Contributor

Choose a reason for hiding this comment

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

use pictureWidth/Height and playerWidth/Height

function setPlayerDimensionsOnPoster(poster: string, width: number, height: number): string {
const parts = poster.split('/');
for (let i = 0; i < parts.length; i++) {
if (parts[i] === 'width') {
Copy link
Contributor

Choose a reason for hiding this comment

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

try to use string.match(/width\/(\d+))

@dan-ziv dan-ziv merged commit 96a51b3 into master Mar 12, 2018
@dan-ziv dan-ziv deleted the poster-thumbs-ott branch March 12, 2018 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants