Commit Graph

5 Commits

Author SHA1 Message Date
Joey Parrish f539147d48 fix: Correct license headers in compiled output
This fixes all the license headers in the main library, which corrects
the appearance of the main license in the compiled output.

It seems that the `!` in the header forces the compiler to keep it in
the output.  I believe older compiler releases did this purely based
on `@license`.

Issue #2638

Change-Id: I7f0e918caad10c9af689c9d07672b7fe9be7b2f3
2020-06-09 16:05:09 -07:00
Joey Parrish 64896d70b0 Use shorter license header
This reflects changes in Google's policy on JavaScript license
headers, which should be smaller to avoid increasing the size of the
binary unnecessarily.

This also updates the company name from "Google, Inc" to "Google LLC".

Change-Id: I3f8b9ed3700b6351f43173d50c94d35c333e82b4
2019-11-22 18:18:36 +00:00
Jacob Trimble ef28a58125 Allow 'rebufferingGoal' to change after startup.
Fixes #2217

Change-Id: If525ebbeef8dccbc814f53b0bf9c9d562c5b448e
2019-10-28 20:51:07 +00:00
Aaron Vaage 1284dd484b Make Buffering Observer A Top-Level Component
Before the buffering observer was a playhead observer, but with
supporting src=, changing how we interact with the buffering observer
was made easier if it was handled as a top-level component.

This meant moving it off the playhead observer interface and create its
own timer in player.

Coming off the playehead observer interface, the buffering observer did
not need to use callbacks, which made it easier to use. This will also
allow us to use it as the single source of "is buffering" in a later
change.

Change-Id: I8cad9bfde3309de7c2b8301b90aa8c40b6e4d247
2019-03-29 19:43:31 +00:00
Aaron Vaage 88b5ad7852 Refactor Playhead Observers Into Separate Classes For Each Observation
Before we had one central playhead observer that would monitor multiple
different relationships:
  1. Buffering
  2. Periods
  3. Timeline Regions

This CL breaks each observer into their own class (allowing for them
to be tested independently). To allow the player to be ignorant of which
ones are in-use, a playhead observer manager has been created.

The player is responsible for creating the observers since it has the
knowledge of what ones need to be created (and the references to
everything).

As part of breaking the observers apart, the Region Timeline was broken
out so that the observer has something to observe (similar to how the
buffering observer observes the buffered region and the period observer
observes the periods).

Change-Id: I18bf0f45561f3bac44da50c0d00a02f8b1fbf3cf
2019-02-01 00:43:35 +00:00