Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Receive chunks of video and play them in browser

Base idea: I am creating an app. In which user chooses local file(mp4) in input field(type="file") and then streams the video to other user. I am thinking to manipulate the file in javascript. And send it chunk by chunk to another user via(datachannels webRTC) then just play it on the other side chunk by chunk.

I understand that i can "assemble" the chunks using - MediaSource API

Questions: How can i split the video in chunks using javascript? I have been googling for a while i can't seem to find a library( maybe i am googling wrong keywords? ).

Thanks!

like image 496
IvRRimUm Avatar asked Nov 01 '16 18:11

IvRRimUm


1 Answers

What wouldn't be more awesome then using WebTorrent to share the video got everything you need... uses WebRTC...

like image 146
Endless Avatar answered Nov 06 '22 18:11

Endless