c# - Play video file being written -


i developed socket based p2p system stream mp4 video client server. video data transferred using byte[].

the transfer works, struggling figure out how play, in continuous, mp4 file being transferred pc? pc application, play file, in wpf.

i tried using mediaelement play file, being written disk, reason doesnt play @ all. can play videolan tho.

any hint of look? lost here!

thanks in advance!

its going different every player. mp4 worst possible container application. container designed used random access media, such has hard disk. player has ability, , requirement seek around within file, , not plat start finish. either need make protocol mp4 aware (parse file, , download block needed next), or use streamable container such ts, or flv.

its possible player knows file incomplete. atoms sizes encoded within file. if file size doest match, combined atom sizes, player assume corrupt file.if happening, can try pre allocate file. may trick player enough play


Comments