- Fix dev-dependency installation
- Fix npm license format warning
- Ignore node_modules
Now dev-deps can be installed simply by running "npm install".
Because of npm/npm#3059, this requires the in-publish module.
Change-Id: Idc2eeca5b172de50760a6fadacb1d1088985f840
Now only error logs will be displayed, except when they are expected.
This also allows the logging in the tests to be changed easily in
one place (spec/util.js).
Change-Id: Ib7dd093ebfd2f7004392b775c7bce48dc43ec6fc
This also cleans up compiler errors for:
- Things required but not used
- Things used but not required
- Write-only local variables
We are suppressing the 'unnecessaryCasts' error in specific places
where it is, in fact, necessary to convert between unrelated types
for polyfills and work-alikes.
Change-Id: I155c746116f95383ea0a9caf9239fadccd8601af
Support testing is hierarchical. Player.support returns an object
mapping out the support present in various parts of the system.
This creates a shell for Player and DrmEngine, and introduces support
tests for MediaSourceEngine, ManifestParser, and DrmEngine.
This also adjusts the way support checks are done for text types, to
allow for expansion into MP4-embedded text types and other segmented
subtitle types.
Text changes related to #150 and #146
Change-Id: I707f01ba52cba6262ee89bee2c1f28d24aca4655
This will allow support-testing to work on older browsers so that
application developers can still load the library and query for
support to show an appropriate error message.
To accomplish this, we avoid load-time uses of Function.bind, avoid
certain polyfills if modern types are not available, and compile down
to ES3 to avoid errors caused by use of the reserved word "catch" on
Promises.
This has been tested back to IE6, Safari 5.1, iOS 6.0, Firefox 6,
Chrome 15, and Opera 16.
Change-Id: I9deed106a7736758e04452ef85bae40f37c6fe62
Installation of the Promise polyfill was incomplete in compiled mode,
since static methods were not attached to the constructor by the
compiler.
Cherry-picked from v1.6.1.
Change-Id: I304662dfdb88d2fb76fc8c06a23fc6fae2f5b1f1
This error type will be used for all internal errors, and will rely
on numeric error codes which can be easily checked by the application.
This also changes PSSH parsing to throw on errors instead of retaining
partial data.
Issue #201
b/25306826
Change-Id: I19d23d99d4ee72cb31fe5f233bac57a3a9cfc283
* No longer uses FailoverUri.
* Uses string URIs directly.
* WebM now gets the last segment's duration.
Change-Id: I1b17f95c4f3fed4bf7e46964687670860240cc2b
This changes namespace exports to the more targetted exportDoc,
adds exports where they are needed and removes them where they are
not. Exporting of Uint8Array and String utils should be re-evaluated
later.
Change-Id: I9298e73a0a5ef026b6f2b1854488d2c359be10c1
Until I can figure out how to get Opera running on Linux with MP4
support, remove Opera from the list of Linux browsers to test.
Change-Id: I229c89bb0959a274cb7962338a448bca2a34ad14
Avoid karma v0.13.15, which has a bug that prevents our new
integration tests from running correctly on Chrome.
(See karma-runner/karma#1101)
Change-Id: Ia81410b1184ddca3a703d71cd923d4ec0ae5eefc
For IE11, Promise and CustomEvent polyfills needed to be installed,
our use of the Event constructor in EventManager tests needed to be
fixed, and our DataViewReader tests needed to accept IE's version of
RangeError.
Change-Id: I39a4a1e00836f15cab430c040fdbf19a52762cdb
This mocks the date and clock for retry tests to eliminate flake on
busy machines (such as our buildbot).
b/25727620
Change-Id: Ied0f1a3a4aa72ec9d8fbc5c4b36a3c91a489e668
This makes it clear and explicit which node modules we need to run
tests. Anyone installing Shaka Player via npm can get the deps
automatically.
Change-Id: I77456d3351775444a2bc669dd0129ce4afc0d1a6
Previously, destroy() would reject as soon as any in-progress request
failed. Now, destroy() waits for all requests to end regardless of
their ultimate state.
Also adds tests to cover destroy() behavior and drops unused test
util code from 1.x. Line coverage for NetworkingEngine is now 100%.
Change-Id: I0e39e494d8f28c6dc595725a46094d10e3a58e93
This wraps all MediaSource and SourceBuffer operations in Promises
and synchronizes them.
b/25306817
Change-Id: I73483ba73427d309c4e09cb82ab6404a59e7a726