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

chore: update this project to use the generator #352

Merged
merged 12 commits into from
Jan 11, 2021
Merged

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Oct 9, 2020

Note: This change is not a major version update, but any syntax updates in lib will require us to do a major.

Based on #351 as that is a required, but easily separate piece to standardizing this project. has been merged

Changes

  • Segments are generated via rollup as we do in vhs, I compiled them back into binary files.
  • Commented out web worker code in test/metadata-stream.test.js as it will take some work to get it working with rollup. See TODO below.

TODO (in another pull request):

  • Add a plugin to unit test the WebWorker code in test/metadata-stream.test.js that I commented out as it relies on browserify. Done via rollup-plugin-worker-factory
  • Update the code to linting standards in phases and reenable the lint script by removing the : from the front.
  • Update the pre-commit hook to run lint-staged again by removing the : in-front of it.

Comment on lines 19 to 21
const mainBuilds = generate(Object.assign({input: 'lib/index.js', distName: 'mux'}, shared)).builds;
const mp4Builds = generate({input: 'lib/mp4/index.js', distName: 'mux-mp4'}).builds;
const flvBuilds = generate({input: 'lib/flv/index.js', distName: 'mux-flv'}).builds;
Copy link
Member

Choose a reason for hiding this comment

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

What's being used for the UMD name here? Looks like previously it was set to muxjs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated to muxjs

@gkatsev gkatsev added this to the 5.7 milestone Nov 17, 2020
Base automatically changed from chore/update-qunit to main December 1, 2020 19:22
@gkatsev gkatsev modified the milestones: 5.7, 5.8 Dec 1, 2020
@brandonocasey brandonocasey force-pushed the chore/generator branch 2 times, most recently from cd68273 to 613081e Compare December 1, 2020 20:23
@@ -81,9 +81,11 @@ var makeMdatFromCaptionPackets = function(packets) {
mdat.push(sei.escapedRBSP.length + 1); // nal length
mdat.push(0x06); // declare nal type as SEI
// SEI message
sei.escapedRBSP.forEach(function(byte) {
for (var i = 0; i < sei.escapedRBSP.length; i++) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

small change as ie 11 does not support forEach on a Uint8Array

@@ -2635,7 +2637,7 @@ QUnit.test('Cea608Stream will log errors, not throw an exception', function(asse
'warnings were logged to the console'
);

window.console.error = originalConsole;
console.error = originalConsole;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nodejs support

Copy link
Member

@gkatsev gkatsev left a comment

Choose a reason for hiding this comment

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

Tested with this linked into VHS, and it's working as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants