Commit Graph

9 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 fd0dc8a5cc Add utility for looping from 0 to n.
Closes #1518

Change-Id: I865f7a0311516d04ae84532dab873e1aaa31eb24
2019-07-10 21:23:22 +00:00
Jacob Trimble 0dd64074b9 Only allow one statement per line.
With the new style rule, we cannot have two statements on the same line.
So we can no longer have an "if" on a single line and we cannot have
an arrow function with a body on the same line as when it is used.
This is mostly a manual change.

Change-Id: I2285202dd5ecbad764308bc725e6d317ff2ee7f0
2019-05-13 22:11:50 +00:00
Joey Parrish 685e9d57cf Eliminate free calls of static methods
It is type-safe to alias a class, but not one of its static methods.
Aliasing the method without the class makes it a "free call" to invoke
the aliased method.

A "free call" is when you call a method without the context of its
instance of class.  There were several cases of this with static
methods.

This will be enforced by a future release of the compiler, which I
believe will lead into compiler support for "this" in static ES6
methods.  In ES6, you can use "this" in static methods to refer to the
class and call other static methods.  Closure compiler doesn't support
static "this" yet, but we will start using it as soon as it is
supported.

Change-Id: I4249db8b6dda9231ebba60ee0d4ad734a692c2fe
2019-05-03 18:43:35 +00:00
Joey Parrish 64e6e9508d Add missing private annotations
Caught by a newer compiler/linter that we have not been able to fully
adopt yet.

Change-Id: If25c7132f33d5544533542283c42a5ac7f39a552
2018-11-09 14:28:49 -08:00
Aaron Vaage 1792fff110 Support Multiple Codecs Per Stream in Adaptation Sets
This change adds support for when multiple streams are
transmuxed into a single stream.

Change-Id: I955026e512a488a93acd319962eb9059fb7dc9e3
2018-10-10 23:10:40 +00:00
Aaron Vaage 7c11edd2e0 Create Example Based Adaptation Set Criteria
Create an adaptation set criteria that will take a variant to
use as an example for what variants should be adapted between.

Since this could fail when periods change, there is a fallback
to case where we find the closest options.

Change-Id: I53bc2c53a7871e5069f0ddb0af3d19510efaf59e
2018-10-05 21:44:51 +00:00
Aaron Vaage ca4c8161f9 Isolate Audio Filtering In Adaptation Set Criteria
Isolate creating adaptation sets in an object so that we can easily
modify the logic. To ensure that we respect the rules of an adaptation
set, an adaptation set object is used.

Issue #1071

Change-Id: I7fbbd079fd79bceea515c8a434f682aba214b7a2
2018-10-03 22:04:41 +00:00