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

webtorrent.min.js:7 Uncaught TypeError: Cannot read property 'readUInt8' of undefined #717

Closed
Wasser-Eis opened this issue Apr 2, 2016 · 5 comments
Labels
bug

Comments

@Wasser-Eis
Copy link

@Wasser-Eis Wasser-Eis commented Apr 2, 2016

  • WebTorrent version: v0.90.0
  • Browser name/version (if using WebTorrent in the browser): Google Chrome 49.0.2623.110 m

I once again try to use client.appendTo(....) to get mp4 videos played back in the browser. This worked for this MP4 file: http://www.w3schools.com/html/mov_bbb.mp4

But if I use the same code with this MP4 file: http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_2160p_30fps_normal.mp4

, I get the following error:
"webtorrent.min.js:7 Uncaught TypeError: Cannot read property 'readUInt8' of undefined"

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 4, 2016

Thanks for reporting this, but it actually looks like a bug in videostream, or one of it's dependencies.

@jhiesey - can you confirm?

Here's a full stack trace:

Uncaught TypeError: Cannot read property 'readUInt8' of undefinedexports.esds.decode
  Box.decodeWithoutHeaders
  Box.decode
  exports.AudioSampleEntry.decode
  Box.decodeWithoutHeaders
  Box.decode
  exports.stsd.decode
  Box.decodeWithoutHeaders
  Box.decode
  Box.decodeWithoutHeaders
  Box.decode
  Box.decodeWithoutHeaders
  Box.decode
  Box.decodeWithoutHeaders
  Box.decode
  Box.decodeWithoutHeaders
  Box.decode
  Box.decodeWithoutHeaders
  (anonymous function)
  Decoder._write
  doWrite
  writeOrBuffer
  Writable.write
  ondata
  EventEmitter.emit
  readableAddChunk
  Readable.push
  (anonymous function)
  (anonymous function)
  Item.run
  drainQueue
@feross feross added bug blocked labels Apr 4, 2016
@jhiesey

This comment has been minimized.

Copy link
Contributor

@jhiesey jhiesey commented Apr 4, 2016

@feross: This should fix the exception: jhiesey/mp4-box-encoding@9a9c7c3

However, this file still doesn't work even with that fix, so I'll keep investigating.

@jhiesey

This comment has been minimized.

Copy link
Contributor

@jhiesey jhiesey commented Apr 4, 2016

Yeah, chrome MediaSource doesn't seem to like the audio mime type of audio/mp4; codecs="mp4a.6b" on the audio track. This could either be a limitation of the browser or a bug in computing the mime type in a dependency of videostream. I'll look at this soon.

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 4, 2016

@jhiesey Cool, thanks for digging into this 👍

@feross feross closed this Apr 21, 2016
@lock

This comment has been minimized.

Copy link

@lock lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.