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-9577): Hisense playback doesn't work #438

Merged
merged 12 commits into from
Jan 29, 2020
Merged

fix(FEC-9577): Hisense playback doesn't work #438

merged 12 commits into from
Jan 29, 2020

Conversation

Yuvalke
Copy link
Contributor

@Yuvalke Yuvalke commented Jan 23, 2020

Description of the Changes

Issue: Hisense can't contain base64 as source.
Solution: add the set capability to engines and then handle it inside the engines, add partial possibility assignment the rest capability will be checked as well, if not needed it won't check.
add regex to detect correctly hisense TV and add smart tv detection fallback for tv which doesn't support yet.

Depends on kaltura/kaltura-player-js#298

Solves FEC-9577

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

hisense can't contain base64 as source.
@Yuvalke Yuvalke requested a review from a team January 23, 2020 14:38
@Yuvalke Yuvalke self-assigned this Jan 23, 2020
src/player.js Outdated
Player._playerCapabilities[engineType] = Utils.Object.mergeDeep({}, Player._playerCapabilities[engineType], capabilities);
EngineProvider.getEngines()
.find(Engine => Engine.id === engineType)
.setCapabilities(capabilities);
Copy link
Contributor

Choose a reason for hiding this comment

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

find could return null

? Promise.resolve(playCapability)
: Html5AutoPlayCapability.runCapability(playsinline);
return fallbackPlayCapabilityTest.then(fallbackPlayCapability =>
Utils.Object.mergeDeep(fallbackPlayCapability, Html5AutoPlayCapability._capabilities)
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this merge pass by the returned promise?

@yairans yairans merged commit 281421b into master Jan 29, 2020
@yairans yairans deleted the FEC-9577 branch January 29, 2020 10:18
yairans added a commit to kaltura/kaltura-player-js that referenced this pull request Jan 30, 2020
…#302)

Set the autoplay capability to `false` for native Ios player.
Thanks kaltura/playkit-js#438 the `runCapability` won't run 

Solves FEC-9629
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