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 up[video stream] video html tag is not created #321
Comments
This comment has been minimized.
This comment has been minimized.
|
Are you using Firefox? Video streaming is only supported in browsers with MediaSource. Try Chrome. |
This comment has been minimized.
This comment has been minimized.
|
It's the same on both FF and Chrome, thanks for quick reply, I also want to add that no Node.js and Browserify are used, it's only a simple html file with the code I posted. |
This comment has been minimized.
This comment has been minimized.
|
Ah, try adding |
This comment has been minimized.
This comment has been minimized.
|
Nice, it works and the tag is created but I get a: Not allowed to load local resource: blob:null/29e820f6-80ea-44a7-86f3-039ed71f34e2 making the video unreadable |
This comment has been minimized.
This comment has been minimized.
|
Looks like your browser is blocking blobs from letting you read local files from your disk. Try loading the site from a real server like |
This comment has been minimized.
This comment has been minimized.
|
okay, trying |
This comment has been minimized.
This comment has been minimized.
|
Last error I think ^^: Uncaught InvalidStateError: Failed to execute 'endOfStream' on 'MediaSource': The MediaSource's readyState is not 'open'.webtorrent.min.js:1 (anonymous function)webtorrent.min.js:4 49.n.emitwebtorrent.min.js:5 kwebtorrent.min.js:5 Ewebtorrent.min.js:5 62.f.endwebtorrent.min.js:4 lwebtorrent.min.js:4 nwebtorrent.min.js:4 49.n.emitwebtorrent.min.js:4 (anonymous function)webtorrent.min.js:4 52.c.runwebtorrent.min.js:4 u |
This comment has been minimized.
This comment has been minimized.
|
Did the video play at all before it printed this error? |
This comment has been minimized.
This comment has been minimized.
|
No, it's only playing on instant.io, thanks you alot for your help |
This comment has been minimized.
This comment has been minimized.
|
It was due to file, it's working with webM ones. |
This comment has been minimized.
This comment has been minimized.
|
Great, glad you got it figured out! |
First of all excuse me for writing in here but I dont really know where to find help in using webtorrent.
Here's my code:
I seeded the file in instant.io and I get the following output in console when executing the above code:
"webtorrent " "new webtorrent (peerId 2d5757303034312d366161363464316639396131, nodeId d488495b38918d054d8959b34ffe895ac4b196b8)" " +0ms" webtorrent.min.js:6:2835
"webtorrent " "add" " +2ms" webtorrent.min.js:6:2835
"webtorrent:torrent " "new torrent" " +1ms" webtorrent.min.js:6:2835
"bittorrent-swarm " "new swarm (i b276fac02e3d2da254019ad9d13e41d6108aecab p 2d5757303034312d366161363464316639396131)" " +0ms" webtorrent.min.js:2:25277
Successfully compiled asm.js code (total compilation time 0ms; not stored in cache (too small to benefit)) webtorrent.min.js
"torrent-discovery " "setTorrent b276fac02e3d2da254019ad9d13e41d6108aecab" " +0ms" webtorrent.min.js:2:25277
"bittorrent-tracker " "new client b276fac02e3d2da254019ad9d13e41d6108aecab" " +0ms" webtorrent.min.js:2:25277
"bittorrent-tracker " "send
start" " +2ms" webtorrent.min.js:2:25277No error but no video shown in the browser's window.