Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebTorrent does not play back some MP4 files #685
Comments
This comment has been minimized.
This comment has been minimized.
|
have a look at #405 |
This comment has been minimized.
This comment has been minimized.
|
@Wasser-Eis This mp4 file definitely works: https://webtorrent.io/torrents/sintel-1024-surround.mp4 But the file that you linked to also should work. If I download it, then drop it onto https://instant.io it works just fine. The error message you're getting is weird because it normally shows up for file extension types that cannot be added to the DOM, for example ".exe" or ".avi". But it's an empty string for you. Are you adding the |
This comment has been minimized.
This comment has been minimized.
|
It also does not work with your posted mp4 file. document.getElementById('fileinput').addEventListener('change', function(){ client.seed(file2, {name: "Test42"}, function(torrent){}); client.add(magnetURI, function(torrent){ "Are you adding the sintel-2048-surround.mp4 file directly? Or adding a .torrent file?" |
This comment has been minimized.
This comment has been minimized.
|
@Wasser-Eis Both adding the video directly or the .torrent file should work. What browser are you using? |
This comment has been minimized.
This comment has been minimized.
|
I use Google Chrome in the most current version. |
This comment has been minimized.
This comment has been minimized.
|
I don't know what to tell you – there's clearly a mistake somewhere in your code. If you send a link to your full code, I can take a quick look. I recommend using the Instant.io code as a guide. |
This comment has been minimized.
This comment has been minimized.
|
This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue. |
The quick example of the WebTorrent Documentation on webtorrent.io does not work with some .mp4 files. I have tried it with three different mp4 files. I always got an "Uncaught Error: Unsupported file type "": Cannot append to DOM" error.
For example the following mp4 file does not get played back:
http://peach.themazzone.com/durian/movies/sintel-2048-surround.mp4
My desktop VLC player can play this mp4 file back without problems.
Please explain.
Additionally:
Where can I download a mp4 file that definitively works with WebTorrent?