Skip to content

Fix hls player#7362

Merged
bramkragten merged 3 commits intodevfrom
fix-camera-background
Oct 17, 2020
Merged

Fix hls player#7362
bramkragten merged 3 commits intodevfrom
fix-camera-background

Conversation

@bramkragten
Copy link
Copy Markdown
Member

@bramkragten bramkragten commented Oct 16, 2020

Proposed change

Don't cache video el, as it gets recreated

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (thank you!)
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code or addition of tests

Example configuration

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:
  • Link to documentation pull request:

Checklist

  • The code change is tested and works locally.
  • There is no commented out code in this PR.
  • Tests have been added to verify that the new code works.

If user exposed functionality or configuration variables are added/changed:

Copy link
Copy Markdown
Member

@balloob balloob left a comment

Choose a reason for hiding this comment

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

Can we add a comment why it exists?

@bramkragten bramkragten changed the title Fix camera playing in background Fix hls player Oct 16, 2020
Copy link
Copy Markdown

@nick2525 nick2525 left a comment

Choose a reason for hiding this comment

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

I didn't see, where you transfer changes. I see you deleted changes, but I don't know Typescript //Oh, now I understood, you changed video cache flag

@property({ type: Boolean, attribute: "allow-exoplayer" })
public allowExoPlayer = false;

@query("video", true) private _videoEl!: HTMLVideoElement;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add a comment

@bramkragten bramkragten merged commit a7998b3 into dev Oct 17, 2020
@bramkragten bramkragten deleted the fix-camera-background branch October 17, 2020 21:43
@abmantis
Copy link
Copy Markdown
Member

If this fixes home-assistant/android#979 maybe it should be included on the current version as a point release? It is draining battery and eating a lot of traffic.

@bramkragten bramkragten mentioned this pull request Oct 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants