-
Notifications
You must be signed in to change notification settings - Fork 213
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
added several errors and error stream emission #56
Conversation
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' || |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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_
).
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. |
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 |
fixed some style issues, changed an else to an else if