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

added several errors and error stream emission #56

Closed
wants to merge 4 commits into from
Closed

added several errors and error stream emission #56

wants to merge 4 commits into from

Conversation

brandonocasey
Copy link
Contributor

fixed some style issues, changed an else to an else if

fixed some style issues, changed an else to an else if
startIndex = 0,
endIndex = MP2T_PACKET_LENGTH,
everything;

// if bytes is not a valid stream
if (typeof bytes !== 'object' ||
typeof bytes.byteLength === 'undefined' ||
Copy link
Member

Choose a reason for hiding this comment

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

We gotta find a better way to test for undefined...

@@ -269,6 +317,84 @@ ElementaryStream = function() {
data: [],
size: 0
},
handlePesData = function(data) {
Copy link
Member

Choose a reason for hiding this comment

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

You could make these private-ish methods and then skip the need for self (e.g. handlePesData_ or just pes_).

@gkatsev
Copy link
Member

gkatsev commented Mar 22, 2019

Someone should take a look at whether the conflicts can be resolved in a reasonable amount of time (<30 min) otherwise, we should close this and perhaps schedule time to re-do it.

@brandonocasey
Copy link
Contributor Author

After looking this over, I don't think we want to use this. Most of the error cases in this pull request should probably be handled, rather than having an error on them. #224 is one example

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

3 participants