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

[JW8-10570] Sync with upstream feature/v1.0.0 #247

Merged
merged 171 commits into from
Sep 18, 2019
Merged

Conversation

robwalch
Copy link

@robwalch robwalch commented Sep 18, 2019

This PR will...

Sync LHLS branch with upstream v1.0.0 PR.

We have PR open upstream with branch feature/v1.0.0 against master:
video-dev#2370

Why is this Pull Request needed?

This is a working branch but more stable than LHLS. We should stay in sync with upstream for visibility (on both ends) into status of changes and issues.

The upstream work includes:

  • 0.13 changes and fixes from upstream
  • bug fix for live stream sync
  • lint and type-check fixes
  • unit test fixes
  • use npm instead of yarn

Are there any points in the code the reviewer needs to double check?

The merge branch restores "version" in package.json which is not present upstream. yarn and npm errors when our build uses yarn add to modify the package.json to a commit where the package.json is technically invalid.

Resolves issues:

JW8-10570

itsjamie and others added 30 commits February 2, 2019 08:45
Per feedback from John, the further defined response type caused issue in callers.
…rack.len (video-dev#2096)

* mp4-remuxer / remuxAudio() : dont rely on track.len to compute mdatSize

recompute it by looping through all samples and summing their individual size

get rid of track.len as it should now be useless

related to video-dev#2063
…cript

* Playlist-loader rename.

* Playlist Loader conversion to TypeScript.

* Change responseType to string

* Typo fix for destory -> destroy.

* Change networkDetails type to "unknown".
* Start and stop subtitle loading in sync with startLoad()/stopLoad() API calls
* Compute sliding & merge subtitle playlists during live playback
* Fix shared references between subtitle-track-controller and subtitle-stream-controller
* Refactoring:
     * Extend subtitle-stream-controller from base-stream-controller
     * Move more shared logic into base-stream-controller
     * Move live reload interval calculation into a shared function & import into subtitle-track-controller
    * Remove the trackId from subtitle fragments, and refer to them by their level property
    * Several other minor refactorings (flipped conditionals, destructuring args, organizing functions)
* Add a bunch of unit tests
Fix XSS issue on metrics page reported in video-dev#2161.
stream-controller: remove inaccurate comment
which includes fix for issue with create-react-app

fixes video-dev#2064
…mically (video-dev#1986)

* Adding the ability for CapLevelController to be enabled/disabled dynamically.

* Updating API docs to include capLevelToPlayerSize as getter/setter.

* Updated documentation to further clarify capLevelToPlayerSize

* Added test to ensure stop capping called when cap level controller destroyed.

* Added test that nextLevelSwitch is called when we stop capping.
File name fix `event-handler.js` to `event-handler.ts`
…bpack

update webworkify-webpack to 2.1.5
Adds typing to the default HlsConfig.

Additionally provides controller-based config types to use for type narrowing controller configuration to its own subset of configuration properties from the exposed public interface.

Added Webpack DefinePlugin constants in their own declaration file to be used in other files as well.

A test stream from video-dev#1909 started to 404, reached out to author of issue to see if we could move this stream somewhere for continued use.

Esdoc plugin was required so that documentation could continue to be produced. The AST parser took issue with the object rest spreading.
@robwalch robwalch added this to the 8.11.0 milestone Sep 18, 2019
@robwalch robwalch changed the title Sync with upstream feature/v1.0.0 [JW8-10570] Sync with upstream feature/v1.0.0 Sep 18, 2019
- generate samples Box (moof and mdat)
- in charge of generating MP4 boxes
- generate Init Segment (moov)
- generate samples Box (moof and mdat)
- [src/remux/mp4-remuxer.js][]

Choose a reason for hiding this comment

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

Should we change this to mp4-remuxer.ts?

Copy link
Author

@robwalch robwalch Sep 18, 2019

Choose a reason for hiding this comment

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

good catch. I never look at this file.

private cea608Parser?: Cea608Parser;
private lastSn: number = -1;
private prevCC: number = -1;
private vttCCs: any = null;

Choose a reason for hiding this comment

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

Does it make sense to specify types for vttCCs and Cues?

// expect(removeStub).to.have.been.calledWith('video', mockSourceBuffer.video, 0, 10);
// });
//
// it('should trigger clean back buffer when there are no pending appends', function () {

Choose a reason for hiding this comment

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

What are these for?

@zetagame zetagame merged commit 90ea7f1 into LHLS Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet